[Bug 744857] New: Some decoders need mp4's maximum sample size
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Feb 20 05:59:31 PST 2015
Bug ID: 744857
Summary: Some decoders need mp4's maximum sample size
Version: git master
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: alfonso.sanchez-beato at canonical.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 297396
Patch for qtdemux.c
HW decoders re-use input buffers and in some cases the size they use is too
small because they try to minimize the (physical)memory resources employed when
decoding. Therefore, some times it is needed to give them a good estimate of
the maximum sample size to avoid decoding errors that happen when the input
buffer size is smaller than the size of a sample.
This patch reads that information for iso mp4 containers, and complements the
patch in bug #737599 (https://bugzilla.gnome.org/show_bug.cgi?id=737599), which
did the same for avi files.
The size is determined using the sample size field in stsz atom if set or
searching the maximum sample size in the sample size table field (stsz too)
otherwise. This is similar to what is done in the AOSP project:
(See http://goo.gl/sp3S8V for information on the mp4 stsz atom.)
We are using "max-input-size" cap in out androidmedia/hybris decoder
as we found some videos produce artefacts for some HW decoders in mobile SoCs.
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