Commit 10c8f913 authored by Paul B Mahol's avatar Paul B Mahol

astdec: improve probing

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 13c62525
...@@ -26,8 +26,11 @@ ...@@ -26,8 +26,11 @@
static int ast_probe(AVProbeData *p) static int ast_probe(AVProbeData *p)
{ {
if (AV_RL32(p->buf) == MKTAG('S', 'T', 'R', 'M')) if (AV_RL32(p->buf) == MKTAG('S','T','R','M') &&
return AVPROBE_SCORE_MAX / 2; AV_RB16(p->buf + 10) &&
AV_RB16(p->buf + 12) &&
AV_RB32(p->buf + 16))
return AVPROBE_SCORE_MAX / 3 * 2;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment