Commit 760e6b8b authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/ffmpegcolorspace/gstffmpegcodecmap.c: Fix RGBA32 caps. Fixes #357038.

Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps):
Fix RGBA32 caps. Fixes #357038.
parent c90664d2
2006-11-20 Wim Taymans <wim@fluendo.com>
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps):
Fix RGBA32 caps. Fixes #357038.
2006-11-20 Tim-Philipp Müller <tim at centricular dot net>
 
* gst-libs/gst/interfaces/mixertrack.h:
......@@ -229,14 +229,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;
......@@ -254,7 +254,6 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
g_mask = 0x0000ff00;
b_mask = 0x000000ff;
a_mask = 0xff000000;
#endif
break;
case PIX_FMT_YUV410P:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment