# HG changeset patch # User reimar # Date 1253210960 0 # Node ID 0d44bd284a96e086f36a9356b0eb195443005776 # Parent 7c0b8cd87f5a35e67f7618aa36ecd3347619c918 Improve SIFF probe by also checking the first tag is one of the expected. diff -r 7c0b8cd87f5a -r 0d44bd284a96 siff.c --- a/siff.c Thu Sep 17 18:08:07 2009 +0000 +++ b/siff.c Thu Sep 17 18:09:20 2009 +0000 @@ -60,11 +60,12 @@ static int siff_probe(AVProbeData *p) { + uint32_t tag = AV_RL32(p->buf + 8); /* check file header */ - if (AV_RL32(p->buf) == TAG_SIFF) - return AVPROBE_SCORE_MAX; - else + if (AV_RL32(p->buf) != TAG_SIFF || + (tag != TAG_VBV1 && tag != TAG_SOUN)) return 0; + return AVPROBE_SCORE_MAX; } static int create_audio_stream(AVFormatContext *s, SIFFContext *c)