After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698949 - v4l2: fix copying of encoded buffers
v4l2: fix copying of encoded buffers
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-26 13:23 UTC by Michael Olbrich
Modified: 2013-04-26 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.46 KB, patch)
2013-04-26 13:23 UTC, Michael Olbrich
committed Details | Review

Description Michael Olbrich 2013-04-26 13:23:33 UTC
Created attachment 242562 [details] [review]
patch

The existence of a GstVideoFormatInfo does not guarantee, that
the buffer contains video frames, so the format must be checked.

Also, for encoded buffers the length is variable and must be set.
Comment 1 Sebastian Dröge (slomo) 2013-04-26 13:37:24 UTC
commit fd0123800c8c1cf1468c0fa5d592ad0d0d8b4140
Author: Philipp Zabel <p.zabel@pengutronix.de>
Date:   Mon Aug 20 09:52:34 2012 +0200

    v4l2: fix copying of encoded buffers
    
    The existence of a GstVideoFormatInfo does not guarantee, that
    the buffer contains video frames, so the format must be checked.
    
    Also, for encoded buffers the length is variable and must be set.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698949