Commit c4dd4f19 authored by Paul B Mahol's avatar Paul B Mahol

smush: improve probing

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent a15adabd
...@@ -32,8 +32,10 @@ typedef struct { ...@@ -32,8 +32,10 @@ typedef struct {
static int smush_read_probe(AVProbeData *p) static int smush_read_probe(AVProbeData *p)
{ {
if ((AV_RL32(p->buf) == MKTAG('S', 'A', 'N', 'M') || if (((AV_RL32(p->buf) == MKTAG('S', 'A', 'N', 'M') &&
AV_RL32(p->buf) == MKTAG('A', 'N', 'I', '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; return AVPROBE_SCORE_MAX;
} }
......
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