diff options
author | wm4 <wm4@nowhere> | 2018-08-24 12:55:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-08-24 12:55:10 +0200 |
commit | 9467e90c5bc1c15245acf27afd6dc83287beba9d (patch) | |
tree | 18f1ac8a8948fdfb9ecf6dd212e5ce6ee803d077 | |
parent | cdc05c33b33d958a8877851bd5942adbb856f5e4 (diff) | |
download | mpv-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.
-rw-r--r-- | demux/demux_lavf.c | 2 |
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 }, |