diff options
author | wm4 <wm4@nowhere> | 2016-12-19 21:29:46 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-12-19 21:29:46 +0100 |
commit | 3b5777d86a62b9975c4c0fd224140e494db66ada (patch) | |
tree | 9121a0244005cbc2c0f051425dc018d219f9d7a5 /demux/demux_lavf.c | |
parent | e57037dc952def5c2b2d2be7535052f94dfb9294 (diff) | |
download | mpv-3b5777d86a62b9975c4c0fd224140e494db66ada.tar.bz2 mpv-3b5777d86a62b9975c4c0fd224140e494db66ada.tar.xz |
demux_mkv: fix seeking in some broken files
Some files have audio tracks with packets that do not have a keyframe
flag set at all. I don't think there's any audio codec which actually
needs keyframe flags, so always assume an audio packet is a keyframe
(which, in Matroska terminology, means it can start decoding from that
packet).
The file in question had these set:
| + Multiplexing application: Lavf57.56.100 at 313
| + Writing application: Lavf57.56.100 at 329
Garbage produced by garbage...
There are other such files produced by mkvmerge, though. It's not
perfectly sure whether these have been produced by FFmpeg as well
(mkvmerge often trusts the information in the source file, even if it's
wrong - so other samples could have been remuxed from FFmpeg).
Fixes #3920.
Diffstat (limited to 'demux/demux_lavf.c')
0 files changed, 0 insertions, 0 deletions