summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-05-22 22:32:31 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commitf06b3d7f887a9515dbad314f9d57351169e08a9b (patch)
tree0daf2ceb273c47e924040f5955ac8b71df5a4056 /demux/demux_lavf.c
parent01423d8c037d32c52561f5068ff17f93f2e50414 (diff)
downloadmpv-f06b3d7f887a9515dbad314f9d57351169e08a9b.tar.bz2
mpv-f06b3d7f887a9515dbad314f9d57351169e08a9b.tar.xz
demux_lavf: also fix cache seeking with large codec delay
Fixes the same thing as the previous commit did with demux_mkv. I'm not sure if this is correct or a good idea (well, it works with my sample file). There are some shady things in this, but describing them would require too many expletives.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index a021542500..283e6fe6fb 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -658,6 +658,8 @@ static void handle_new_stream(demuxer_t *demuxer, int i)
export_replaygain(demuxer, sh, st);
+ sh->seek_preroll = delay;
+
break;
}
case AVMEDIA_TYPE_VIDEO: {