media-video/x264-encoder: fix build with ffmpeg git master.
authorAlexis Ballier <aballier@gentoo.org>
Wed, 16 Sep 2015 13:34:07 +0000 (15:34 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 16 Sep 2015 13:34:21 +0000 (15:34 +0200)
Package-Manager: portage-2.2.20.1

media-video/x264-encoder/files/ffmpeg29.patch [new file with mode: 0644]
media-video/x264-encoder/x264-encoder-0.0.20150820-r1.ebuild

diff --git a/media-video/x264-encoder/files/ffmpeg29.patch b/media-video/x264-encoder/files/ffmpeg29.patch
new file mode 100644 (file)
index 0000000..d840c87
--- /dev/null
@@ -0,0 +1,13 @@
+Index: x264-snapshot-20150820-2245/x264.c
+===================================================================
+--- x264-snapshot-20150820-2245.orig/x264.c
++++ x264-snapshot-20150820-2245/x264.c
+@@ -442,7 +442,7 @@ static void print_csp_names( int longhel
+     printf( "                              - valid csps for `lavf' demuxer:\n" );
+     printf( INDENT );
+     size_t line_len = strlen( INDENT );
+-    for( enum PixelFormat i = AV_PIX_FMT_NONE+1; i < AV_PIX_FMT_NB; i++ )
++    for( enum AVPixelFormat i = AV_PIX_FMT_NONE+1; i < AV_PIX_FMT_NB; i++ )
+     {
+         const char *pfname = av_get_pix_fmt_name( i );
+         if( pfname )
index 71259d770424930182838244194e97125de247f7..a837041813e25ad792d9c04a97bf481bf1ec41ad 100644 (file)
@@ -39,7 +39,7 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 src_prepare() {
-       epatch "${FILESDIR}/gpac.patch"
+       epatch "${FILESDIR}/gpac.patch" "${FILESDIR}/ffmpeg29.patch"
 }
 
 src_configure() {