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:
parent
056f6b8f09
commit
4b3cca3630
@ -282,7 +282,8 @@ static AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int
|
|||||||
if (score > *score_max) {
|
if (score > *score_max) {
|
||||||
*score_max = score;
|
*score_max = score;
|
||||||
fmt = fmt1;
|
fmt = fmt1;
|
||||||
}
|
}else if (score == *score_max)
|
||||||
|
fmt = NULL;
|
||||||
}
|
}
|
||||||
return fmt;
|
return fmt;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user