summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-08-24 12:55:10 +0200
committersfan5 <sfan5@live.de>2018-10-01 10:41:01 +0200
commit20d381d1e98844146ffda3e9b9b6b812af95e397 (patch)
tree1d09d98b11db918b7b838d37dd1c8e2b3818b43b /demux
parent515c4163eac8af1b1cfdc4d9bca1b6c41edf4199 (diff)
downloadmpv-20d381d1e98844146ffda3e9b9b6b812af95e397.tar.bz2
mpv-20d381d1e98844146ffda3e9b9b6b812af95e397.tar.xz
demux_lavf: v4l streams are not seekable
FFmpeg is retarded enough not to give us any indication whether it is (unless we query fields not in the ABI/API). I bet FFmpeg developers love it when library users have to litter their code with duplicated information.
Diffstat (limited to 'demux')
-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 01f99ae6fa..54c144bcc1 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -162,6 +162,8 @@ static const struct format_hack format_hacks[] = {
{"mp4", .skipinfo = true, .fix_editlists = true},
{"matroska", .skipinfo = true},
+ {"v4l2", .no_seek = true},
+
// In theory, such streams might contain timestamps, but virtually none do.
{"h264", .if_flags = AVFMT_NOTIMESTAMPS },
{"hevc", .if_flags = AVFMT_NOTIMESTAMPS },