From 4b3cca363078a6ca489a74c837481279608146eb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 15 Apr 2008 13:50:02 +0000 Subject: [PATCH] Do not detect a format if another has the same score. Originally committed as revision 12837 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index dad210499e..55b9fba0c0 100644 --- 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; }