amldemux: CB2 qtdemux fix f4v pts error [1/1]
PD#SWPL-135907
Problem:
qtdemux fix f4v pts is error
Solution:
00019-qtdemux-fix-f4v-pts-error.patch
Verify:
Yocto
Signed-off-by: zengliang.li <zengliang.li@amlogic.com>
Change-Id: I4051cb11bfc6d164e718b8a98686c18e6dfb2a7c
diff --git a/aml-qtdemux/qtdemux.c b/aml-qtdemux/qtdemux.c
index 8bf4d0e..815792a 100644
--- a/aml-qtdemux/qtdemux.c
+++ b/aml-qtdemux/qtdemux.c
@@ -9479,7 +9479,7 @@
/* HACK: if sample_offset is larger than 2 * duration, ignore the box.
* slightly inaccurate PTS could be more usable than corrupted one */
if (G_UNLIKELY ((ctts_version == 0 || offset != G_MININT32)
- && ABS (offset) / 2 > stream->duration)) {
+ && ABS (offset) * 2 > stream->duration)) {
GST_WARNING_OBJECT (qtdemux,
"Ignore corrupted ctts, sample_offset %" G_GINT32_FORMAT
" larger than duration %" G_GUINT64_FORMAT, offset,