mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
smush: improve probing
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a15adabdd3
commit
c4dd4f19f3
@ -32,8 +32,10 @@ typedef struct {
|
||||
|
||||
static int smush_read_probe(AVProbeData *p)
|
||||
{
|
||||
if ((AV_RL32(p->buf) == MKTAG('S', 'A', 'N', 'M') ||
|
||||
AV_RL32(p->buf) == MKTAG('A', 'N', 'I', 'M'))) {
|
||||
if (((AV_RL32(p->buf) == MKTAG('S', 'A', 'N', 'M') &&
|
||||
AV_RL32(p->buf + 8) == MKTAG('S', 'H', 'D', 'R')) ||
|
||||
(AV_RL32(p->buf) == MKTAG('A', 'N', 'I', 'M') &&
|
||||
AV_RL32(p->buf + 8) == MKTAG('A', 'H', 'D', 'R')))) {
|
||||
return AVPROBE_SCORE_MAX;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user