mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
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.
This commit is contained in:
parent
c90664d260
commit
760e6b8be8
2 changed files with 10 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue