[Bug 726678] New: align.padding_bottom should plus two to make height as 2 aligned.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Mar 18 22:18:35 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=726678
  GStreamer | gst-libav | 1.2.3

           Summary: align.padding_bottom should plus two to make height as
                    2 aligned.
    Classification: Platform
           Product: GStreamer
           Version: 1.2.3
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-libav
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: lj.qfy.sh at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


I found in gst_ffmpegviddec_decide_allocation(), align.padding_bottom is added
1 extra pixel padding to match libav buffer allocation sizes, this will make
the padding_bottom to odd number. But when calculate each planes offset in
fill_planes(), it will GST_ROUND_UP_2 (height) for I420 format.

This makes the calculated height by height + align.padding_top +
align.padding_bottom not match with the plane offset. 

It will cause problem for showing video with v4l2 output, as the height is not
match with the real video height, cause v4l2 calculate u/v offset incorrect,
then cause video color is wrong.

So shall align.padding_bottom add 2 extra pixel to make the height an even
number?

Patch is attached.

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