[Bug 791271] New: v4l2videodec: padding removal only works if the driver extends both width and height

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Dec 5 15:53:37 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=791271

            Bug ID: 791271
           Summary: v4l2videodec: padding removal only works if the driver
                    extends both width and height
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: p.zabel at pengutronix.de
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 365034
  --> https://bugzilla.gnome.org/attachment.cgi?id=365034&action=edit
v4l2videodec: Handle drivers that only round up height

Commit 1f31715c9861 ("v4l2videodec: use visible size, not coded size, 
for downstream negotiation filter") added support for removing the 
padding obtained as the difference between width/height from G_FMT and 
visible width/height from G_SELECTION from the probed caps obtained 
via TRY_FMT.
The attached patch fixes the padding removal for drivers that only round
up  height, but not width, to the padded frame size. This might happen 
because horizontal padding can be handled by line stride (bytesperline), 
but there is no such thing as plane stride in the V4L2 API for 
single-buffer planar formats.

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