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:
Benjamin Gaignard 2013-05-16 10:52:29 +02:00 committed by Tim-Philipp Müller
parent ced858fa65
commit 5da2bd3216

View file

@ -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;