Commit 70dc9a08 authored by reimar's avatar reimar

Improve SIFF probe by also checking the first tag is one of the expected.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19898 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e52312ca
...@@ -60,11 +60,12 @@ typedef struct SIFFContext{ ...@@ -60,11 +60,12 @@ typedef struct SIFFContext{
static int siff_probe(AVProbeData *p) static int siff_probe(AVProbeData *p)
{ {
uint32_t tag = AV_RL32(p->buf + 8);
/* check file header */ /* check file header */
if (AV_RL32(p->buf) == TAG_SIFF) if (AV_RL32(p->buf) != TAG_SIFF ||
return AVPROBE_SCORE_MAX; (tag != TAG_VBV1 && tag != TAG_SOUN))
else
return 0; return 0;
return AVPROBE_SCORE_MAX;
} }
static int create_audio_stream(AVFormatContext *s, SIFFContext *c) static int create_audio_stream(AVFormatContext *s, SIFFContext *c)
......
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