[FFmpeg-devel] [PATCH] improve H.263 probe

Reimar Döffinger Reimar.Doeffinger
Wed Nov 17 22:51:47 CET 2010


Hello,
related to issue2363.
If there is only one single frame raw MPEG-2 and H.263 detection conflict
and result in a negative value.
Below patch fixes the given sample, however I guess it might result in
single-frame H.263 files not being detected correctly...
Opinions/ideas?
Index: ffmpeg/libavformat/h263dec.c
===================================================================
--- ffmpeg/libavformat/h263dec.c        (revision 25760)
+++ ffmpeg/libavformat/h263dec.c        (working copy)
@@ -60,7 +60,7 @@
     if(valid_psc > 2*invalid_psc + 2*res_change + 3){
         return 50;
     }else if(valid_psc > 2*invalid_psc)
-        return 25;
+        return valid_psc > 1 ? 25 : 15;
     return 0;
 }
 




More information about the ffmpeg-devel mailing list