From 20d381d1e98844146ffda3e9b9b6b812af95e397 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 24 Aug 2018 12:55:10 +0200 Subject: 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. --- demux/demux_lavf.c | 2 ++ 1 file changed, 2 insertions(+) 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 }, -- cgit v1.2.3