[FFmpeg-devel] [PATCH] avformat/utils: disabled debug code to collect format probing statistics

Michael Niedermayer michaelni at gmx.at
Sat Nov 9 17:22:39 CET 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/utils.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5637d17..e28272f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -399,6 +399,10 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
                 av_log(logctx, AV_LOG_WARNING, "Format %s detected only with low score of %d, misdetection possible!\n", (*fmt)->name, score);
             }else
                 av_log(logctx, AV_LOG_DEBUG, "Format %s probed with size=%d and score=%d\n", (*fmt)->name, probe_size, score);
+#if 0
+            FILE *f= fopen("probestat.tmp", "ab");
+            fprintf(f, "%d, bytes format: %s, filename: %s, score: %d\n", probe_size, (*fmt)->name, filename, score);
+#endif
         }
     }
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list