Commit 1bc8c361 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Print a warning if a format has been detected with a low score.

Originally committed as revision 19890 to svn://
parent c36823fd
......@@ -474,8 +474,12 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
/* guess file format */
fmt = av_probe_input_format2(pd, 1, &score);
av_log(*ic_ptr, AV_LOG_DEBUG, "Probe with size=%d detected %s with score=%d\n", probe_size, fmt->name, score);
if(score <= AVPROBE_SCORE_MAX/4){ //this can only be true in the last iteration
av_log(*ic_ptr, AV_LOG_WARNING, "Format detected only with low score of %d, misdetection possible!\n", score);
av_log(*ic_ptr, AV_LOG_DEBUG, "Probed with size=%d and score=%d\n", probe_size, score);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment