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.
This commit is contained in:
wm4 2018-08-24 12:55:10 +02:00 committed by sfan5
parent 515c4163ea
commit 20d381d1e9
1 changed files with 2 additions and 0 deletions

View File

@ -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 },