ext/ffmpeg/gstffmpegcodecmap.c: Fix masks for RGBA32 caps. Fixes colours when decoding using ffdec_qtrle. Follows an ...

Original commit message from CVS:
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps):
Fix masks for RGBA32 caps. Fixes colours when decoding using
ffdec_qtrle. Follows an identical fix in the ffmpegcolorspace copy of
this code (revision 1.29).
This commit is contained in:
Michael Smith 2008-03-06 12:18:48 +00:00
parent 62bc3b929b
commit ff9e22cac5
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2008-03-06 Michael Smith <msmith@fluendo.com>
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps):
Fix masks for RGBA32 caps. Fixes colours when decoding using
ffdec_qtrle. Follows an identical fix in the ffmpegcolorspace copy of
this code (revision 1.29).
2008-03-05 Wim Taymans <wim.taymans@collabora.co.uk>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_class_init),

View file

@ -1146,14 +1146,14 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context,
depth = 32;
endianness = G_BIG_ENDIAN;
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
r_mask = 0x000000ff;
r_mask = 0x00ff0000;
g_mask = 0x0000ff00;
b_mask = 0x00ff0000;
b_mask = 0x000000ff;
a_mask = 0xff000000;
#else
r_mask = 0xff000000;
r_mask = 0x0000ff00;
g_mask = 0x00ff0000;
b_mask = 0x0000ff00;
b_mask = 0xff000000;
a_mask = 0x000000ff;
#endif
break;