[FFmpeg-cvslog] avformat: Dont stop probing before the whole id3 tag is read

Michael Niedermayer git at videolan.org
Thu Apr 18 23:49:52 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 18 23:10:46 2013 +0200| [020c287f5ee51f06fd662f4ab79cb22acc5da204] | committer: 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: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=020c287f5ee51f06fd662f4ab79cb22acc5da204
---

 libavformat/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index e32f972..b1acc3e 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;



More information about the ffmpeg-cvslog mailing list