From: Alexis Ballier Date: Wed, 16 Sep 2015 13:34:07 +0000 (+0200) Subject: media-video/x264-encoder: fix build with ffmpeg git master. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac1de66b8f0e6b5eb3ea4422028b5cb140c6cb70;p=gentoo.git media-video/x264-encoder: fix build with ffmpeg git Package-Manager: portage-2.2.20.1 --- diff --git a/media-video/x264-encoder/files/ffmpeg29.patch b/media-video/x264-encoder/files/ffmpeg29.patch new file mode 100644 index 000000000000..d840c87d9623 --- /dev/null +++ b/media-video/x264-encoder/files/ffmpeg29.patch @@ -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 ) diff --git a/media-video/x264-encoder/x264-encoder-0.0.20150820-r1.ebuild b/media-video/x264-encoder/x264-encoder-0.0.20150820-r1.ebuild index 71259d770424..a837041813e2 100644 --- a/media-video/x264-encoder/x264-encoder-0.0.20150820-r1.ebuild +++ b/media-video/x264-encoder/x264-encoder-0.0.20150820-r1.ebuild @@ -39,7 +39,7 @@ DEPEND="${RDEPEND} virtual/pkgconfig" src_prepare() { - epatch "${FILESDIR}/gpac.patch" + epatch "${FILESDIR}/gpac.patch" "${FILESDIR}/ffmpeg29.patch" } src_configure() {