[vlc-commits] Avcodec chroma: use a more resistant ifdef for 0BGR

Jean-Baptiste Kempf git at videolan.org
Sun Dec 29 16:56:40 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Dec 29 16:55:05 2013 +0100| [fea56e03d977462739ec91f7b7f255e569706861] | committer: Jean-Baptiste Kempf

Avcodec chroma: use a more resistant ifdef for 0BGR

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

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

diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 7a07f1c..4cc98ee 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -120,7 +120,7 @@ static const struct
     VLC_RGB( VLC_CODEC_RGB32, PIX_FMT_RGB32, PIX_FMT_BGR32, 0x00ff0000, 0x0000ff00, 0x000000ff )
     VLC_RGB( VLC_CODEC_RGB32, PIX_FMT_RGB32_1, PIX_FMT_BGR32_1, 0xff000000, 0x00ff0000, 0x0000ff00 )
 
-#if (LIBAVUTIL_VERSION_MICRO >= 100)
+#ifdef AV_PIX_FMT_0BGR32
     VLC_RGB( VLC_CODEC_RGB32, AV_PIX_FMT_0BGR32, AV_PIX_FMT_0RGB32, 0x000000ff, 0x0000ff00, 0x00ff0000 )
 #endif
 



More information about the vlc-commits mailing list