summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>2014-11-19 16:12:38 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2014-11-19 11:58:19 -0500
commitbf73d834b2c1fed9894fa587b149d4162873b126 (patch)
tree2464da14f0ff8750308d3180e3a149f1e3e35082
parent0053ad08471e14bed592fe125f1b2999d23c00cd (diff)
flvdemux: Restrict resyncing to TS regressions
The behavior of resyncing video and audio indepen- dently can cause A/V desyncs. Lets restrict resyncs to jumps backward for now. https://bugzilla.gnome.org/show_bug.cgi?id=736397
-rw-r--r--gst/flv/gstflvdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 607d554cf..be073ed26 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -894,7 +894,7 @@ gst_flv_demux_update_resync (GstFlvDemux * demux, guint32 dts, gboolean discont,
{
gboolean ret = FALSE;
gint32 ddts = dts - *last;
- if (!discont && ABS (ddts) >= RESYNC_THRESHOLD) {
+ if (!discont && ddts <= -RESYNC_THRESHOLD) {
/* Theoretically, we should use substract the duration of the last buffer,
but this demuxer sends no durations on buffers, not sure if it cannot
know, or just does not care to calculate. */