Commit b68a7679 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent f76eef99
...@@ -473,7 +473,8 @@ static int h263_probe(AVProbeData *p) ...@@ -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); //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; return 50;
}else if(valid_psc > 2*invalid_psc) }else if(valid_psc > 2*invalid_psc)
return 25; return 25;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment