[vlc-commits] Add version guards on avutil for AV_PIX_FMT_GBRP

Jean-Baptiste Kempf git at videolan.org
Sat Mar 22 12:29:09 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Mar 22 12:28:37 2014 +0100| [168a83f74bda17c02c5f332da036023619c5a557] | committer: Jean-Baptiste Kempf

Add version guards on avutil for AV_PIX_FMT_GBRP

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

 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 9d14c21..7f067ea 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -133,7 +133,9 @@ static const struct
      /* Paletized RGB */
     {VLC_CODEC_RGBP, PIX_FMT_PAL8, 0, 0, 0},
 
+#if LIBAVUTIL_VERSION_CHECK(51, 42, 0, 74,100)
     {VLC_CODEC_GBR_PLANAR, AV_PIX_FMT_GBRP, 0, 0, 0 },
+#endif
 
     /* XYZ */
 #if LIBAVUTIL_VERSION_CHECK(52, 10, 0, 25, 100)



More information about the vlc-commits mailing list