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

Originally committed as revision 12837 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 17 years ago
parent 056f6b8f09
commit 4b3cca3630
  1. 3
      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;
}

Loading…
Cancel
Save