[vlc-commits] commit: avcodec: Allow usage of VLC_CODEC_RGBA ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Wed Jul 28 00:08:16 CEST 2010


vlc/vlc-1.1 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Jul 22 22:07:18 2010 +0200| [61644861ced2cf319da1136a4e7041da42e4c833] | committer: Jean-Baptiste Kempf 

avcodec: Allow usage of VLC_CODEC_RGBA

PIX_FMT_RGBA is not a define, but an enum member.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit c23388a92310654a5547f66452981445182ef962)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/avcodec/chroma.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 2a248b4..f857f09 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -105,9 +105,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 defined(PIX_FMT_RGBA)
     {VLC_CODEC_RGBA, PIX_FMT_RGBA, 0xff000000, 0x00ff0000, 0x0000ff00},
-#endif
     {VLC_CODEC_GREY, PIX_FMT_GRAY8, 0, 0, 0},
 
      /* Paletized RGB */



More information about the vlc-commits mailing list