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

Raise threshold of h263 probe by 1 to avoid misdetection.

Fixes issue 1588.

Originally committed as revision 20765 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-12-08 12:34:08 +00:00
parent f76eef99a2
commit b68a7679f9

View File

@ -473,7 +473,8 @@ static int h263_probe(AVProbeData *p)
}
}
//av_log(NULL, AV_LOG_ERROR, "h263_probe: psc:%d invalid:%d res_change:%d\n", valid_psc, invalid_psc, res_change);
if(valid_psc > 2*invalid_psc + 2*res_change + 2){
//h263_probe: psc:3 invalid:0 res_change:0 (1588/recent_ffmpeg_parses_mpg_incorrectly.mpg)
if(valid_psc > 2*invalid_psc + 2*res_change + 3){
return 50;
}else if(valid_psc > 2*invalid_psc)
return 25;