summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-10-25 18:26:35 -0700
committerAlex Converse <alex.converse@gmail.com>2011-10-28 15:44:09 -0700
commit7a773d4d59c9a2e14cb84201f8d17cbf3edaede8 (patch)
tree594632c1330759407c9bcccbed8994d71dbe76d3 /libavformat/utils.c
parentca65932bbf2a4851838f84456050e2972091950d (diff)
probe: Remove id3 tag presence as a criteria to do file extension checking.
This only encourages our users to put id3v2 tags on non-mp3 files to opt into extension based probing.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 637d615d90..20be871669 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -339,7 +339,7 @@ AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score
}
/* a hack for files with huge id3v2 tags -- try to guess by file extension. */
- if (!fmt && id3 && *score_max < AVPROBE_SCORE_MAX/4) {
+ if (!fmt && is_opened && *score_max < AVPROBE_SCORE_MAX/4) {
while ((fmt = av_iformat_next(fmt)))
if (fmt->extensions && av_match_ext(lpd.filename, fmt->extensions)) {
*score_max = AVPROBE_SCORE_MAX/4;