Commit 020c287f authored by Michael Niedermayer's avatar Michael Niedermayer

avformat: Dont stop probing before the whole id3 tag is read

When a file appears to start with a id3 tag and appears to
also be something else, then try to increase the probe buffer
size if its below its limit.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c6a43a72
...@@ -388,6 +388,8 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, int *score ...@@ -388,6 +388,8 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, int *score
}else if (score == score_max) }else if (score == score_max)
fmt = NULL; fmt = NULL;
} }
if(nodat)
score_max = FFMIN(AVPROBE_SCORE_MAX/4-1, score_max);
*score_ret= score_max; *score_ret= score_max;
return fmt; return fmt;
......
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