1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

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