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:
e93523a
)
avformat/icodec: reduce score returned on probing
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 8 Nov 2013 19:10:33 +0000
(20:10 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 8 Nov 2013 19:10:33 +0000
(20:10 +0100)
The ico probe function is pretty weak just checking a few bytes for being 0, 1 or not 0
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/icodec.c
patch
|
blob
|
history
diff --git
a/libavformat/icodec.c
b/libavformat/icodec.c
index
fa308da
..
4c038e9
100644
(file)
--- a/
libavformat/icodec.c
+++ b/
libavformat/icodec.c
@@
-45,7
+45,7
@@
typedef struct {
static int probe(AVProbeData *p)
{
if (AV_RL16(p->buf) == 0 && AV_RL16(p->buf + 2) == 1 && AV_RL16(p->buf + 4))
- return AVPROBE_SCORE_MAX /
3
;
+ return AVPROBE_SCORE_MAX /
4
;
return 0;
}