forked from FFmpeg/FFmpeg
astdec: improve probing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
13c6252536
commit
10c8f91341
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue