amltsdmx: CF1 solution offest is an invalid value after seek0 [1/1]
PD#SWPL-180069
Problem:
offest is an invalid value after seek0
Solution:
Compare querypcr and firstpcr before calculating offset
sync patch 0013-SWPL-115704
Verify:
ap222
Change-Id: I2176eea4e660a6ea392df8e0f559c5cda6305b9b
Signed-off-by: bo.xiao <bo.xiao@amlogic.com>
diff --git a/aml-tsdemux/amltspacketizer.c b/aml-tsdemux/amltspacketizer.c
index a8145c1..e2a4537 100644
--- a/aml-tsdemux/amltspacketizer.c
+++ b/aml-tsdemux/amltspacketizer.c
@@ -2520,9 +2520,7 @@
lastpcr, lastoffset);
res = firstoffset;
- //xiaobo-patch 0013-swpl-115704
- //if (lastpcr != firstpcr && querypcr > firstpcr)
- if (lastpcr != firstpcr)
+ if (lastpcr != firstpcr && querypcr > firstpcr)
res += gst_util_uint64_scale (querypcr - firstpcr,
lastoffset - firstoffset, lastpcr - firstpcr);