summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-09 22:47:41 +0200
committerwm4 <wm4@nowhere>2015-07-09 22:47:41 +0200
commitf3d06e3e913ea061a716935a561c9d5c1758f718 (patch)
tree694026fd4e420b256d9cd40444bd058d90e92c4f /stream/stream_file.c
parentd23d9dc39421226622dbeb3c6c62c54ad1c3a667 (diff)
downloadmpv-f3d06e3e913ea061a716935a561c9d5c1758f718.tar.bz2
mpv-f3d06e3e913ea061a716935a561c9d5c1758f718.tar.xz
demux_mkv: improve video duration detection heuristic
Extend the --demuxer-mkv-probe-video-duration behavior to work with files that are partial and are missing an index. Do this by finding a cluster 10MB before the end of the file, and if that fails, just read the entire file. This is actually pretty trivial to do and requires only 5 lines of code. Also add a mode that always reads the entire file to estimate the video duration.
Diffstat (limited to 'stream/stream_file.c')
0 files changed, 0 insertions, 0 deletions