diff options
author | wm4 <wm4@nowhere> | 2016-02-22 20:21:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-22 20:21:13 +0100 |
commit | 0e298bb95a67f59c1afb4669c33d66d5ac99fc6e (patch) | |
tree | d09e117f476ad8384c607274a7e09c5896bed08a /demux/ebml.c | |
parent | 7c181e5b9b3e429d3202a6d28264a36cbd7d9699 (diff) | |
download | mpv-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/ebml.c')
0 files changed, 0 insertions, 0 deletions