avformat/act: Check ff_get_wav_header() for failure
Fixes: missing error check Fixes: CID717495 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 5982da87e3464e7df529a169352748560d70ba80) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8775295080
commit
c5dba22ae4
@ -66,6 +66,7 @@ static int read_header(AVFormatContext *s)
|
|||||||
AVIOContext *pb = s->pb;
|
AVIOContext *pb = s->pb;
|
||||||
int size;
|
int size;
|
||||||
AVStream* st;
|
AVStream* st;
|
||||||
|
int ret;
|
||||||
|
|
||||||
int min,sec,msec;
|
int min,sec,msec;
|
||||||
|
|
||||||
@ -75,7 +76,9 @@ static int read_header(AVFormatContext *s)
|
|||||||
|
|
||||||
avio_skip(pb, 16);
|
avio_skip(pb, 16);
|
||||||
size=avio_rl32(pb);
|
size=avio_rl32(pb);
|
||||||
ff_get_wav_header(s, pb, st->codecpar, size, 0);
|
ret = ff_get_wav_header(s, pb, st->codecpar, size, 0);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
8000Hz (Fine-rec) file format has 10 bytes long
|
8000Hz (Fine-rec) file format has 10 bytes long
|
||||||
|
Loading…
x
Reference in New Issue
Block a user