[FFmpeg-cvslog] r20765 - trunk/libavformat/raw.c

michael subversion
Tue Dec 8 13:34:08 CET 2009


Author: michael
Date: Tue Dec  8 13:34:08 2009
New Revision: 20765

Log:
Raise threshold of h263 probe by 1 to avoid misdetection.
Fixes issue 1588.

Modified:
   trunk/libavformat/raw.c

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Tue Dec  8 13:33:00 2009	(r20764)
+++ trunk/libavformat/raw.c	Tue Dec  8 13:34:08 2009	(r20765)
@@ -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;



More information about the ffmpeg-cvslog mailing list