aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-09 16:59:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-11 13:06:36 +0100
commit676bc505f74ae5596ed42076be6e8ff546b383df (patch)
tree4e938c7ea2cfe91dbbf963a07a2ace92ae1f24e1
parenta7f35afb56d3ce5c98effb4340bc6d3ff8662223 (diff)
downloadffmpeg-676bc505f74ae5596ed42076be6e8ff546b383df.tar.gz
avformat/utils: disabled debug code to collect format probing statistics
This allows collecting statistics on probing scores and the amount of data probing needed for various files and formats. For example it can be used to find out which formats tend to need more data for probing or which files are probed with less certain/lower scores Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5637d17cba..f02312f372 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -399,6 +399,11 @@ 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, "probe_size:%d format:%s score:%d filename:%s\n", probe_size, (*fmt)->name, score, filename);
+ fclose(f);
+#endif
}
}