This only encourages our users to put id3v2 tags on non-mp3 files to opt
into extension based probing.
---
 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 640fa70..2196d35 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;
-- 
1.7.3.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to