[Ffmpeg-cvslog] r7667 - trunk/libavformat/flvdec.c

michael subversion
Tue Jan 23 16:23:42 CET 2007


Author: michael
Date: Tue Jan 23 16:23:41 2007
New Revision: 7667

Modified:
   trunk/libavformat/flvdec.c

Log:
improve probe and give it the max score


Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Tue Jan 23 16:23:41 2007
@@ -34,8 +34,8 @@
     if (p->buf_size < 6)
         return 0;
     d = p->buf;
-    if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V') {
-        return 50;
+    if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V' && d[3] < 5 && d[5]==0) {
+        return AVPROBE_SCORE_MAX;
     }
     return 0;
 }




More information about the ffmpeg-cvslog mailing list