mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
video: fix gst_video_format_from_masks() for little endian masks with alpha
Need to byte-order swap the alpha mask as well in this case. https://bugzilla.gnome.org/show_bug.cgi?id=700413
This commit is contained in:
parent
ced858fa65
commit
5da2bd3216
1 changed files with 1 additions and 0 deletions
|
@ -2165,6 +2165,7 @@ gst_video_format_from_masks (gint depth, gint bpp, gint endianness,
|
|||
red_mask = GUINT32_TO_BE (red_mask);
|
||||
green_mask = GUINT32_TO_BE (green_mask);
|
||||
blue_mask = GUINT32_TO_BE (blue_mask);
|
||||
alpha_mask = GUINT32_TO_BE (alpha_mask);
|
||||
endianness = G_BIG_ENDIAN;
|
||||
if (bpp == 24) {
|
||||
red_mask >>= 8;
|
||||
|
|
Loading…
Reference in a new issue