diff options
author | wm4 <wm4@nowhere> | 2018-08-24 12:55:10 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-10-01 10:41:01 +0200 |
commit | 20d381d1e98844146ffda3e9b9b6b812af95e397 (patch) | |
tree | 1d09d98b11db918b7b838d37dd1c8e2b3818b43b /demux | |
parent | 515c4163eac8af1b1cfdc4d9bca1b6c41edf4199 (diff) | |
download | mpv-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.c | 2 |
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 }, |