diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-18 23:10:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-18 23:48:32 +0200 |
commit | 020c287f5ee51f06fd662f4ab79cb22acc5da204 (patch) | |
tree | e17e559e5e9c97654e3e48470350eb84e31a8e8a /libavformat/utils.c | |
parent | c6a43a72444adafeeb859f2247b9ac03f20b6672 (diff) | |
download | ffmpeg-020c287f5ee51f06fd662f4ab79cb22acc5da204.tar.gz |
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index e32f97288d..b1acc3eff1 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -388,6 +388,8 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, int *score }else if (score == score_max) fmt = NULL; } + if(nodat) + score_max = FFMIN(AVPROBE_SCORE_MAX/4-1, score_max); *score_ret= score_max; return fmt; |