summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-08-24 12:55:10 +0200
committerwm4 <wm4@nowhere>2018-08-24 12:55:10 +0200
commit9467e90c5bc1c15245acf27afd6dc83287beba9d (patch)
tree18f1ac8a8948fdfb9ecf6dd212e5ce6ee803d077 /demux
parentcdc05c33b33d958a8877851bd5942adbb856f5e4 (diff)
downloadmpv-9467e90c5bc1c15245acf27afd6dc83287beba9d.tar.bz2
mpv-9467e90c5bc1c15245acf27afd6dc83287beba9d.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 ee81ff2773..333d707028 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -163,6 +163,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 },