summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-08-24 12:55:10 +0200
committerJan Ekström <jeebjp@gmail.com>2018-10-01 18:54:27 +0300
commit4f47596043121c32d1e6724db28f21aaaf6303ff (patch)
tree12f5cdab80bcce18e4761245bbb1e9681ce9b4ae
parent3e8fd22f0779db84827b20ae2c5c36f2e5f94a6f (diff)
downloadmpv-4f47596043121c32d1e6724db28f21aaaf6303ff.tar.bz2
mpv-4f47596043121c32d1e6724db28f21aaaf6303ff.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. (cherry picked from commit 20d381d1e98844146ffda3e9b9b6b812af95e397)
-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 83cce14bc2..ee3918318a 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 },