Do not detect a format if another has the same score.

Originally committed as revision 12837 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-04-15 13:50:02 +00:00
parent 056f6b8f09
commit 4b3cca3630
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}