Improve SIFF probe by also checking the first tag is one of the expected.
Originally committed as revision 19898 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3214db98ea
commit
5abfae79ca
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user