summaryrefslogtreecommitdiffstats
path: root/demux/demux_mkv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-22 20:21:03 +0100
committerwm4 <wm4@nowhere>2016-02-22 20:21:13 +0100
commit0e298bb95a67f59c1afb4669c33d66d5ac99fc6e (patch)
treed09e117f476ad8384c607274a7e09c5896bed08a /demux/demux_mkv.c
parent7c181e5b9b3e429d3202a6d28264a36cbd7d9699 (diff)
downloadmpv-0e298bb95a67f59c1afb4669c33d66d5ac99fc6e.tar.bz2
mpv-0e298bb95a67f59c1afb4669c33d66d5ac99fc6e.tar.xz
demux_lavf: adjust seeks by maximum codec delay
Fixes relative seeks. Without this, a seek back could skip so much data that the seek would effectively jump forward. (Or insert silence for files with video.) There's the question whether the frontend should do this instead (by using information from the decoders), but for now this seems more proper. demux_mkv.c does this already, sort of. libavformat doesn't for seeks in .ogg (aka .opus), but might be doing it for mkv. Seems to be a mess as well.
Diffstat (limited to 'demux/demux_mkv.c')
0 files changed, 0 insertions, 0 deletions