Commit 3dc2cc00 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Fix small typo in RGB32LE red-mask check

Original commit message from CVS:
Fix small typo in RGB32LE red-mask check
parent c1486cd0
common @ cd5507ae
Subproject commit fcdc6ccbcc674dd487021d87a0313abf02bae396 Subproject commit cd5507ae3df8dc48c07df9e37878846b6b79faa1
...@@ -521,7 +521,7 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, ...@@ -521,7 +521,7 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt,
/* .. */ /* .. */
break; break;
case PIX_FMT_RGBA32: case PIX_FMT_RGBA32:
bpp = depth = 32; bpp = 32; depth = 24;
endianness = G_BIG_ENDIAN; endianness = G_BIG_ENDIAN;
#if (G_BYTE_ORDER == G_BIG_ENDIAN) #if (G_BYTE_ORDER == G_BIG_ENDIAN)
r_mask = 0x00ff0000; g_mask = 0x0000ff00; b_mask = 0x000000ff; r_mask = 0x00ff0000; g_mask = 0x0000ff00; b_mask = 0x000000ff;
...@@ -876,9 +876,9 @@ gst_ffmpeg_caps_to_pixfmt (GstCaps *caps, ...@@ -876,9 +876,9 @@ gst_ffmpeg_caps_to_pixfmt (GstCaps *caps,
switch (bpp) { switch (bpp) {
case 32: case 32:
#if (G_BYTE_ORDER == G_BIG_ENDIAN) #if (G_BYTE_ORDER == G_BIG_ENDIAN)
if (rmask == 0xff0000) if (rmask == 0x00ff0000)
#else #else
if (rmask == 0x0000ff) if (rmask == 0x0000ff00)
#endif #endif
context->pix_fmt = PIX_FMT_RGBA32; context->pix_fmt = PIX_FMT_RGBA32;
break; break;
......
Supports Markdown
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