vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Feb 27 
21:23:39 2013 +0100| [a809edefeca2171389891a16c43267d712155468] | committer: 
Francois Cartegnie

chroma: add avutil version check for YUV422P9LE/BE (fix #8249)

swscale is broken on systems with disable-avcodec (not meeting avcodec
version requirement).
According to ffmpeg commit e06be9eccdc969a9fd2736c2daf37c2fbccae37f
those chromas have been introduced after avutil 51.12.0.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a809edefeca2171389891a16c43267d712155468
---

 modules/codec/avcodec/chroma.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index f482cf5..8d439a3 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -85,8 +85,10 @@ static const struct
     {VLC_CODEC_I420_9B, PIX_FMT_YUV420P9BE, 0, 0, 0 },
     {VLC_CODEC_I420_10L, PIX_FMT_YUV420P10LE, 0, 0, 0 },
     {VLC_CODEC_I420_10B, PIX_FMT_YUV420P10BE, 0, 0, 0 },
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,13,0)
     {VLC_CODEC_I422_9L, PIX_FMT_YUV422P9LE, 0, 0, 0 },
     {VLC_CODEC_I422_9B, PIX_FMT_YUV422P9BE, 0, 0, 0 },
+#endif
     {VLC_CODEC_I422_10L, PIX_FMT_YUV422P10LE, 0, 0, 0 },
     {VLC_CODEC_I422_10B, PIX_FMT_YUV422P10BE, 0, 0, 0 },
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to