[FFmpeg-cvslog] astdec: improve probing

Paul B Mahol git at videolan.org
Tue Nov 27 11:18:43 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 27 10:12:28 2012 +0000| [10c8f913410e7e13dc055da826c6928af8f2987f] | committer: Paul B Mahol

astdec: improve probing

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavformat/ast.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavformat/ast.c b/libavformat/ast.c
index 4f83540..5f69f47 100644
--- a/libavformat/ast.c
+++ b/libavformat/ast.c
@@ -26,8 +26,11 @@
 
 static int ast_probe(AVProbeData *p)
 {
-    if (AV_RL32(p->buf) == MKTAG('S', 'T', 'R', 'M'))
-        return AVPROBE_SCORE_MAX / 2;
+    if (AV_RL32(p->buf) == MKTAG('S','T','R','M') &&
+        AV_RB16(p->buf + 10) &&
+        AV_RB16(p->buf + 12) &&
+        AV_RB32(p->buf + 16))
+        return AVPROBE_SCORE_MAX / 3 * 2;
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list