[Bug 743311] mpeg2dec does not cope if downstream buffer allocation has stride != width

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 22 05:50:55 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=743311
  GStreamer | gst-plugins-ugly | git master

--- Comment #6 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> 2015-01-22 13:50:51 UTC ---
(In reply to comment #5)
> The documentation for GstVideoMeta says that the stride array may not always be
> valid. Is this a case where it's guaranteed to be valid?

In real life it's always valid. But if you want to be by the book (I would
probably remove that from the documentation imho), you can get a GstVideoInfo
with gst_video_info_from_caps(). Then you can use this VideoInfo to map the
buffer using gst_video_frame_map(). The VideoInfo will be updated and the
stride array at this point has to be valid.

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