diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-12 16:51:10 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-12 16:51:10 +0400 |
commit | aab01c86cf56f5d21d2503f7e854bb19b07ca2c6 (patch) | |
tree | d64927b8781acf8a0b775bbf0def9e924ce8c88f /source/gameengine/VideoTexture/VideoFFmpeg.cpp | |
parent | 497e6bfff9b6343e62d3711efa32c7389af7fec3 (diff) |
Patch #33837: ffmpeg1.1 and libav9.1 compatibility update
Patch makes it possible to compile blender with recent ffmpeg
and libav libraries, mainly by getting rid of deprecated API.
Original patch by Campbell Barton with own modifications to
support compilation with older ffmpeg versions.
This patch could break compatibility of FFV1 videos playing
back in older players, mainly because of alpha support changes.
Preserving compatibility with such players became a headache
and think it's high time to get rid of workarounds here.
Diffstat (limited to 'source/gameengine/VideoTexture/VideoFFmpeg.cpp')
-rw-r--r-- | source/gameengine/VideoTexture/VideoFFmpeg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/VideoTexture/VideoFFmpeg.cpp b/source/gameengine/VideoTexture/VideoFFmpeg.cpp index 8976a21376a..10eef9e0cf2 100644 --- a/source/gameengine/VideoTexture/VideoFFmpeg.cpp +++ b/source/gameengine/VideoTexture/VideoFFmpeg.cpp @@ -174,7 +174,7 @@ int VideoFFmpeg::openStream(const char *filename, AVInputFormat *inputFormat, AV if (avformat_open_input(&formatCtx, filename, inputFormat, formatParams)!=0) return -1; - if (av_find_stream_info(formatCtx)<0) + if (avformat_find_stream_info(formatCtx, NULL) < 0) { av_close_input_file(formatCtx); return -1; @@ -209,7 +209,7 @@ int VideoFFmpeg::openStream(const char *filename, AVInputFormat *inputFormat, AV return -1; } codecCtx->workaround_bugs = 1; - if (avcodec_open(codecCtx, codec)<0) + if (avcodec_open2(codecCtx, codec, NULL) < 0) { av_close_input_file(formatCtx); return -1; |