diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-12-08 12:34:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-12-08 12:34:08 +0000 |
commit | b68a7679f92aa175889c092053972cca88289934 (patch) | |
tree | 31c110672d16a550dab7e97ecf9a8f9a4e9f10f4 /libavformat/raw.c | |
parent | f76eef99a2796c88c4900a428963d6806d9218e4 (diff) | |
download | ffmpeg-b68a7679f92aa175889c092053972cca88289934.tar.gz |
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
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c index a0ebb6a3e9..83cc131b97 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -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; |