Vincent Laviron
44fede6c1e
Fix building on older versions on FFMpeg
2014-04-16 15:12:23 +02:00
Vincent Laviron
84903fce25
FFMpeg: Fix uninitialized AVFrame, which led to crashes with recent version of libav and ffmpeg
2014-04-03 17:28:13 +02:00
Devin J. Pohly
d8d9f466a9
FFmpeg: remove unused PTS logic
...
No-op.
2013-08-23 00:08:25 -04:00
Devin J. Pohly
df543ff86c
FFmpeg: use the cached pkt_dts for timestamps
...
This appears to work far more consistently at the beginnings and ends of
videos.
2013-08-23 00:02:07 -04:00
Devin J. Pohly
9f06195b73
FFmpeg: reinitialize m_fLastFrame in Init()
...
After a Rewind(), the m_fLastFrame wasn't set back to 0. Now it is.
2013-08-23 00:00:00 -04:00
Devin J. Pohly
de74eb5814
FFmpeg: don't unconditionally skip first frame
...
This condition was true when 0 - 0 == 0, so the first frame was being skipped.
2013-08-22 23:58:38 -04:00
Devin J. Pohly
be082b6a7e
FFmpeg: use stream time_base to estimate FPS, not codec
...
Fixes the estimated frame length when we don't get an explicit DTS for the
frame. Also fixes a comment typo.
2013-08-22 16:55:24 -04:00
Devin J. Pohly
cc8ef654ca
MovieTexture_FFmpeg: move class defs to header file
...
No-op. Should make it a little easier to find things in the FFmpeg driver.
2013-08-22 15:11:57 -04:00
Devin J. Pohly
d868c7a5d6
Hack to fix movie crasher
...
A movie larger than the max texture size would be rendered - at its original
size - onto a smaller texture, causing an access violation. This just ignores
the max texture size for movies.
Two better solutions:
1. Resize the movie to the texture size. Ideal, but slow in my experiments.
2. Don't load the movie texture at all in this case. A possibility in the
future, but will require some refactoring first.
2013-05-21 15:31:41 -07:00
Devin J. Pohly
feb919f0bf
Revert memory leak commits
...
5f7001e : "Added a new branch"
01456ed : "Fixed a lot of memory leaks"
dac4493 : "Fixed all remaining memory leaks that I could figure out"
0792db7 : "Removed the smnew macro and the call to _CrtSetDbgFlag()"
Some of these caused destructor-time problems due to static initialization
order fiasco and related issues. Notably, the program would no longer exit on
OSX and had to be killed.
There were probably legitimate fixes in here, but since these are monolithic
commits it's too much work to extract them now. Let's reapply them
individually and in the forward direction.
2013-04-27 00:05:14 -04:00
Shenjoku
0792db752a
Removed the smnew macro and the call to _CrtSetDbgFlag() to get ready for
...
merging with the main branch.
2013-04-19 20:34:11 -07:00
Shenjoku
01456ed0b9
Fixed a lot of memory leaks caused by static globals never getting
...
deleted and some other objects not getting deleted properly due to missing
destructors.
2013-04-18 21:17:57 -07:00
Shenjoku
5f7001ef0a
Added a new branch that implements support for outputting all memory leaks to
...
the debug output for the Debug and FastDebug project configurations. This
requires replacing all instances of new with a macro, smnew, that defines a
special form of new which outputs file and line number information along with
the memory leak details. This makes finding memory leaks much easier since you
can just double-click the leak in the output window and it will take you to the
line that caused it.
2013-04-17 20:42:29 -07:00
Devin J. Pohly
a280f513b4
fix ffmpeg 1.1 builds... another way
2013-02-21 03:18:28 -05:00
Devin J. Pohly
a6bfbb19ac
Revert "make PixelFormat a typedef, fixes ffmpeg 1.1 compat"
...
This reverts commit 4537a66481 .
Apparently broke build on Windows somehow.
2013-02-20 16:23:04 -05:00
Devin J. Pohly
4537a66481
make PixelFormat a typedef, fixes ffmpeg 1.1 compat
2013-02-20 15:29:24 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
a15cbc431d
War on -Werror, part 14: More hodgepodge.
2012-12-27 12:45:04 -05:00
Jason Felds
e86aeb66a8
war on -Werror, part 10: more informals.
2012-12-27 11:01:51 -05:00
Devin J. Pohly
1acbf07466
war on -Werror, part 4: miscellany
2012-12-26 21:45:45 -05:00
Devin J. Pohly
92c7a7389c
replace deprecated functions to fix build on ffmpeg 0.11.1
...
tested on static 0.10.2 as well and it works just fine.
2012-08-02 17:38:08 -04:00
Thai Pangsakulyanont
db80cf5e22
make MovieTexture_FFMpeg use AVIO, so it's possible for us to later update to newer versions of ffmpeg.
...
- untested on Windows. need someone to test it.
- the ffmpeg revision that is used on Mac is f139838 (one tagged with 0.10.2)
2012-04-25 00:20:13 +07:00
Jason Felds
9b78490059
Fix minor warning, make it not take a whole line.
2012-03-31 13:49:22 -04:00
Austen Dicken
0c94594541
remove the need for libtheora since we have ffmpeg to handle
...
theora videos
2012-03-12 23:26:34 -05:00
AJ Kelly
0463d3bee7
ffmpeg fixes/changes from cvpcs
2012-03-10 21:07:38 -06:00
Austen Dicken
220a23f452
Update ffmpeg support to 0.10
2012-03-10 18:45:31 -06:00
Mark Cannon
6256b05272
more platform-independent fix for URLRageFile_write prototype
2012-01-09 05:12:20 -08:00
Mark Cannon
6c88fb9cc8
ffmpeg compatibility tweaks
2012-01-09 07:34:33 -05:00
Jason Felds
3d155c9970
NOW I start moving prototypes to headers?
...
I need to be more consistent...gah, hungry.
2011-06-12 19:35:24 -04:00
Jason Felds
8f24b6c5b7
[sm130futures] Right...Mac wants vorbis.
2011-05-05 01:09:23 -04:00
AJ Kelly
cf81f8cc3b
remove xbox support; it doesn't work, and it'd take too much effort to get it working again
2011-03-19 19:28:57 -05:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
Flameshadowxeroshin
873a60a9a3
fix what appears to be a FFMpeg blocker
2011-03-14 19:39:33 -05:00
Flameshadowxeroshin
067f5d967b
once and for all
2011-03-14 19:35:09 -05:00
Flameshadowxeroshin
4efd7886ed
fuckin merges reverted
2011-03-14 19:30:41 -05:00
Jason Felds
d855d8c7e8
Bring light into the shadow...variables.
...
Yeah, yeah, can't make a good joke at 2:30 AM.
2011-03-14 02:36:48 -04:00
AJ Kelly
ed72f533bd
things still work with these commented out, but the libs still need to be there...
2011-03-13 21:33:01 -05:00
AJ Kelly
dc196b38af
fix compile for real this time
2011-03-02 21:49:31 -06:00
Jason Felds
62a1db4443
THERE!
2011-03-02 19:08:06 -05:00
Jason Felds
1672596922
Why must #macros end differently?
2011-03-02 19:05:18 -05:00
Jason Felds
263a842d8c
Yeah, I've done this with #macros myself before.
2011-03-02 19:02:52 -05:00
AJ Kelly
9ed376e518
fix Mac build with ffmpeg
2011-03-02 17:55:38 -06:00
AJ Kelly
2a12c21daa
apply Tatsh's patch from http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=218
2011-03-02 16:57:34 -06:00
AJ Kelly
40bd873561
corec's fixes (to my recent commits) from issue 138 ( http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=138 )
2010-05-22 09:52:20 -05:00
AJ Kelly
b0798c05ac
corec's changes from http://github.com/corec/cc-overlay/blob/master/games-arcade/sm-ssc/files/sm-ssc-ffmpeg-fixes-01.patch
2010-05-21 20:50:01 -05:00
AJ Kelly
d2d6e66b3c
Add howl's correspondence to my initial comment (asking about nulls)
2010-05-21 20:17:46 -05:00
AJ Kelly
02c7037721
sm-ssc v1.0 Public Beta 1 code changes
2010-03-01 00:44:39 -06:00
AJ Kelly
75861f22a1
various commits from SM4 SVN, courtesy of Glenn and Vyhd.
2010-02-14 23:02:34 -06:00
AJ Kelly
3e51544930
Initial commit.
2010-01-26 21:00:30 -06:00
Devin J. Pohly
80057f53cd
smsvn -> ssc-hg glue: rearrange directory structure
2013-06-10 15:38:43 -04:00