avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate

This commit is contained in:
Diego Biurrun
2013-03-25 16:12:51 +01:00
parent 4d7ed3e735
commit e0f8be6413
36 changed files with 55 additions and 53 deletions

View File

@@ -51,7 +51,7 @@ static int mpegvideo_probe(AVProbeData *p)
}
}
if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes)
return pic>1 ? AVPROBE_SCORE_MAX/2+1 : AVPROBE_SCORE_MAX/4; // +1 for .mpg
return pic>1 ? AVPROBE_SCORE_EXTENSION + 1 : AVPROBE_SCORE_EXTENSION / 2; // 1 more than .mpg
return 0;
}