git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca65932
)
probe: Remove id3 tag presence as a criteria to do file extension checking.
author
Alex Converse
<alex.converse@gmail.com>
Wed, 26 Oct 2011 01:26:35 +0000
(18:26 -0700)
committer
Alex Converse
<alex.converse@gmail.com>
Fri, 28 Oct 2011 22:44:09 +0000
(15:44 -0700)
This only encourages our users to put id3v2 tags on non-mp3 files to opt
into extension based probing.
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
637d615
..
20be871
100644
(file)
--- 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 && i
d3
&& *score_max < AVPROBE_SCORE_MAX/4) {
+ if (!fmt && i
s_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;