mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
avformat/mxfdec: disallow generic seek search
If the demuxer does not provide per-stream indexes, the generic seek search can attempt to read the whole media file from the beginning when seeking. For large MXF files this can cause huge lockups for a seek after the last timestamp, which will eventually fail. So let's disable the generic seek for mxf, the demuxer's own seek code should handle seeking just fine. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
24eff5b547
commit
90f68f7b2d
@ -4274,7 +4274,7 @@ static const AVClass demuxer_class = {
|
||||
const FFInputFormat ff_mxf_demuxer = {
|
||||
.p.name = "mxf",
|
||||
.p.long_name = NULL_IF_CONFIG_SMALL("MXF (Material eXchange Format)"),
|
||||
.p.flags = AVFMT_SEEK_TO_PTS,
|
||||
.p.flags = AVFMT_SEEK_TO_PTS | AVFMT_NOGENSEARCH,
|
||||
.p.priv_class = &demuxer_class,
|
||||
.priv_data_size = sizeof(MXFContext),
|
||||
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
|
||||
|
Loading…
Reference in New Issue
Block a user