diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-27 10:12:28 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-27 10:16:30 +0000 |
commit | 10c8f913410e7e13dc055da826c6928af8f2987f (patch) | |
tree | d2a979ed1b2ed0a56fbcbe0eb1e57666f6dc6af7 /libavformat/ast.c | |
parent | 13c62525362595cc914161aaa192953dd9077233 (diff) | |
download | ffmpeg-10c8f913410e7e13dc055da826c6928af8f2987f.tar.gz |
astdec: improve probing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/ast.c')
-rw-r--r-- | libavformat/ast.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/ast.c b/libavformat/ast.c index 4f835401ed..5f69f47d44 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; } |