[vlc-commits] Fix FFv1 output with FFmpeg

Jean-Baptiste Kempf git at videolan.org
Sat Dec 28 16:25:11 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec 28 16:23:41 2013 +0100| [1b53b355e706ca09fc289319bc237231fd5401b0] | committer: Jean-Baptiste Kempf

Fix FFv1 output with FFmpeg

Close #8691

Of course, because we _really_ need that many RGB formats...

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

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

diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 3f6c39c..7a07f1c 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -120,6 +120,10 @@ 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)
+    VLC_RGB( VLC_CODEC_RGB32, AV_PIX_FMT_0BGR32, AV_PIX_FMT_0RGB32, 0x000000ff, 0x0000ff00, 0x00ff0000 )
+#endif
+
     {VLC_CODEC_RGBA, PIX_FMT_RGBA, 0, 0, 0 },
     {VLC_CODEC_ARGB, PIX_FMT_ARGB, 0, 0, 0 },
     {VLC_CODEC_GREY, PIX_FMT_GRAY8, 0, 0, 0},



More information about the vlc-commits mailing list