[Bug 710392] geometrictransform: fix setting black background for AYUV buffers

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Oct 30 18:36:07 CET 2013


https://bugzilla.gnome.org/show_bug.cgi?id=710392
  GStreamer | gst-plugins-bad | 1.2.0

Sebastian Dröge (slomo) <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #257539|none                        |needs-work
             status|                            |

--- Comment #1 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2013-10-30 17:35:57 UTC ---
Review of attachment 257539:
 --> (https://bugzilla.gnome.org/review?bug=710392&attachment=257539)

::: gst/geometrictransform/gstgeometrictransform.c
@@ +246,3 @@
+     * 0x10 is black for Y; components order is VUYAVUYA... */
+    for (int i = 0; i < out_frame->map[0].size; i += 4)
+      *((guint32 *) (out_data + i)) = 0x808010ff;

This is not going to work properly on big endian systems. Use
GST_WRITE_UINT32_BE(0xff008080) here instead

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list