]> git.sesse.net Git - ffmpeg/commitdiff
Print at debug level the score with which probing succeeded.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 16 Sep 2009 20:23:04 +0000 (20:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 16 Sep 2009 20:23:04 +0000 (20:23 +0000)
Originally committed as revision 19889 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index 3635491d434aebb590e75738873b6318b8b7fc01..0e1d7553434cf4f24dcd67c33cc1c9fffdb03214 100644 (file)
@@ -474,6 +474,8 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
             }
             /* guess file format */
             fmt = av_probe_input_format2(pd, 1, &score);
+            if(fmt)
+                av_log(*ic_ptr, AV_LOG_DEBUG, "Probe with size=%d detected %s with score=%d\n", probe_size, fmt->name, score);
         }
         av_freep(&pd->buf);
     }