git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
061e326
)
lavf/amr: Make the heuristic for auto-detection even stricter.
author
Carl Eugen Hoyos
<ceffmpeg@gmail.com>
Thu, 21 Jun 2018 22:08:13 +0000
(
00:08
+0200)
committer
Carl Eugen Hoyos
<ceffmpeg@gmail.com>
Thu, 21 Jun 2018 22:08:13 +0000
(
00:08
+0200)
Fixes ticket #7270.
libavformat/amr.c
patch
|
blob
|
history
diff --git
a/libavformat/amr.c
b/libavformat/amr.c
index
f954803
..
6cc06bc
100644
(file)
--- 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;
}