demux_lavf: disable various other special behavior if hacks disabled

This affects in particular the heuristic that enables byte seeks in some
cases with .ts input. --demuxer-lavf-hacks=no should disable this
behavior now.
This commit is contained in:
wm4 2017-06-07 16:48:21 +02:00
parent 4d1ffecabc
commit 9f79809930
1 changed files with 2 additions and 1 deletions

View File

@ -477,7 +477,8 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check)
priv->format_hack.image_format = true;
}
priv->avif_flags = priv->avif->flags | priv->format_hack.if_flags;
if (lavfdopts->hacks)
priv->avif_flags = priv->avif->flags | priv->format_hack.if_flags;
demuxer->filetype = priv->avif->name;