mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-10 08:35:58 +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
|
@ -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>
|
2006-11-20 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst-libs/gst/interfaces/mixertrack.h:
|
* gst-libs/gst/interfaces/mixertrack.h:
|
||||||
|
|
|
@ -229,14 +229,14 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
|
||||||
depth = 32;
|
depth = 32;
|
||||||
endianness = G_BIG_ENDIAN;
|
endianness = G_BIG_ENDIAN;
|
||||||
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||||
r_mask = 0x000000ff;
|
r_mask = 0x00ff0000;
|
||||||
g_mask = 0x0000ff00;
|
g_mask = 0x0000ff00;
|
||||||
b_mask = 0x00ff0000;
|
b_mask = 0x000000ff;
|
||||||
a_mask = 0xff000000;
|
a_mask = 0xff000000;
|
||||||
#else
|
#else
|
||||||
r_mask = 0xff000000;
|
r_mask = 0x0000ff00;
|
||||||
g_mask = 0x00ff0000;
|
g_mask = 0x00ff0000;
|
||||||
b_mask = 0x0000ff00;
|
b_mask = 0xff000000;
|
||||||
a_mask = 0x000000ff;
|
a_mask = 0x000000ff;
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
@ -254,7 +254,6 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
|
||||||
g_mask = 0x0000ff00;
|
g_mask = 0x0000ff00;
|
||||||
b_mask = 0x000000ff;
|
b_mask = 0x000000ff;
|
||||||
a_mask = 0xff000000;
|
a_mask = 0xff000000;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case PIX_FMT_YUV410P:
|
case PIX_FMT_YUV410P:
|
||||||
|
|
Loading…
Reference in a new issue