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

@@ -56,9 +56,9 @@ static int h263_probe(AVProbeData *p)
}
}
if(valid_psc > 2*invalid_psc + 2*res_change + 3){
return 50;
return AVPROBE_SCORE_EXTENSION;
}else if(valid_psc > 2*invalid_psc)
return 25;
return AVPROBE_SCORE_EXTENSION / 2;
return 0;
}