[FFmpeg-cvslog] avformat/vqf: check a few more bits in probe
Michael Niedermayer
git at videolan.org
Wed Nov 13 02:07:33 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 12 22:26:34 2013 +0100| [e3fc4481b6dd60acdb9f3e370ee9a1d1bd4ddd73] | committer: Michael Niedermayer
avformat/vqf: check a few more bits in probe
Fixes probetest failure
The threshold is choosen so that a all printale ascii string will never be
detected as vqf
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3fc4481b6dd60acdb9f3e370ee9a1d1bd4ddd73
---
libavformat/vqf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index 4cd0a6d..526b596 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -43,6 +43,9 @@ static int vqf_probe(AVProbeData *probe_packet)
if (!memcmp(probe_packet->buf + 4, "00052200", 8))
return AVPROBE_SCORE_MAX;
+ if (AV_RL32(probe_packet->buf + 12) > (1<<27))
+ return AVPROBE_SCORE_EXTENSION/2;
+
return AVPROBE_SCORE_EXTENSION;
}
More information about the ffmpeg-cvslog
mailing list