projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
056f6b8
)
Do not detect a format if another has the same score.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 15 Apr 2008 13:50:02 +0000
(13:50 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 15 Apr 2008 13:50:02 +0000
(13:50 +0000)
Originally committed as revision 12837 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
dad2104
..
55b9fba
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-282,7
+282,8
@@
static AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int
if (score > *score_max) {
*score_max = score;
fmt = fmt1;
- }
+ }else if (score == *score_max)
+ fmt = NULL;
}
return fmt;
}