diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-06-22 00:08:13 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-06-22 00:08:13 +0200 |
commit | 40b7e6071815fc416a4efc5dc1616f5460a3aacb (patch) | |
tree | c297fa10422246dd8f92ef7669f1420984a3e6e0 | |
parent | 061e326b60ea89bd93df5bfe618283d6d411708d (diff) | |
download | ffmpeg-40b7e6071815fc416a4efc5dc1616f5460a3aacb.tar.gz |
lavf/amr: Make the heuristic for auto-detection even stricter.
Fixes ticket #7270.
-rw-r--r-- | libavformat/amr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c index f954803d46..6cc06bceac 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -201,7 +201,7 @@ static int amrnb_probe(AVProbeData *p) i++; } } - if (valid > 100 && valid > invalid) + if (valid > 100 && valid >> 4 > invalid) return AVPROBE_SCORE_EXTENSION / 2 + 1; return 0; } @@ -258,8 +258,8 @@ static int amrwb_probe(AVProbeData *p) i++; } } - if (valid > 100 && valid > invalid) - return AVPROBE_SCORE_EXTENSION / 2 - 1; + if (valid > 100 && valid >> 4 > invalid) + return AVPROBE_SCORE_EXTENSION / 2 + 1; return 0; } |