diff options
-rw-r--r-- | demux/demux_lavf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 1730d79716..1ccbd417de 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -1213,6 +1213,9 @@ static void demux_seek_lavf(demuxer_t *demuxer, double seek_pts, int flags) "luck by enabling or enlarging the mpv cache.\n"); } + if (priv->linearize_ts < 0) + priv->linearize_ts = 0; + if (!(flags & SEEK_FORWARD)) avsflags = AVSEEK_FLAG_BACKWARD; |