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

git at videolan.org git at videolan.org
Sun Jul 25 19:08:09 CEST 2010


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Jul 22 22:07:18 2010 +0200| [c23388a92310654a5547f66452981445182ef962] | committer: Rémi Denis-Courmont 

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>

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

 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 4c198f6..8418e78 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -99,9 +99,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