diff options
author | wm4 <wm4@nowhere> | 2017-06-07 16:48:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-07 16:48:21 +0200 |
commit | 9f798099309a30ca749329eee1bc5436c69f585a (patch) | |
tree | e8a4a6b8e7b11670a3b354caa941064fe411df88 | |
parent | 4d1ffecabc457e31e51c6331ed89304ff45dc671 (diff) |
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.
-rw-r--r-- | demux/demux_lavf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index f853a775ff..4328c9d782 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -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; |