summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-02-15 10:22:48 +0000
committerAlexis Ballier <aballier@gentoo.org>2015-02-15 10:22:48 +0000
commitde390c359f42184d41f076fa65c8fa6177d9c663 (patch)
tree64a2db57a7117c1b06bb2abbede88a9723ad8d76 /media-video/noad/files
parentVersion bump. (diff)
downloadgentoo-2-de390c359f42184d41f076fa65c8fa6177d9c663.tar.gz
gentoo-2-de390c359f42184d41f076fa65c8fa6177d9c663.tar.bz2
gentoo-2-de390c359f42184d41f076fa65c8fa6177d9c663.zip
fix build with ffmpeg 2.5, bug #540090
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'media-video/noad/files')
-rw-r--r--media-video/noad/files/patches-0.8.x/noad-0.8.6-ffmpeg25.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-video/noad/files/patches-0.8.x/noad-0.8.6-ffmpeg25.patch b/media-video/noad/files/patches-0.8.x/noad-0.8.6-ffmpeg25.patch
new file mode 100644
index 000000000000..455252a74c8a
--- /dev/null
+++ b/media-video/noad/files/patches-0.8.x/noad-0.8.6-ffmpeg25.patch
@@ -0,0 +1,16 @@
+Index: noad-0.8.6/ffmpeg_decoder.cpp
+===================================================================
+--- noad-0.8.6.orig/ffmpeg_decoder.cpp
++++ noad-0.8.6/ffmpeg_decoder.cpp
+@@ -253,7 +253,11 @@ int FFMPegDecoder::decoder_exit()
+ // close the file
+ if( pFormatCtx )
+ {
++#if LIBAVFORMAT_VERSION_MAJOR < 54
+ av_close_input_file(pFormatCtx);
++#else
++ avformat_close_input(&pFormatCtx);
++#endif
+ pFormatCtx = NULL;
+ }
+ // Close the codec