gst/ffmpegcolorspace/gstffmpegcodecmap.c: Fix RGBA32 caps. Fixes #357038.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 20 Nov 2006 15:01:09 +0000 (15:01 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 20 Nov 2006 15:01:09 +0000 (15:01 +0000)
Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps):
Fix RGBA32 caps. Fixes #357038.

ChangeLog
gst/ffmpegcolorspace/gstffmpegcodecmap.c

index 2e64f42..0b1a0e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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:
index 6e5c257..93a2204 100644 (file)
@@ -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: