mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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
This commit is contained in:
parent
0053ad0847
commit
bf73d834b2
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue