Message ID | 20220516011605.18792-2-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 5982da87e3464e7df529a169352748560d70ba80 |
Headers | show |
Series | [FFmpeg-devel,1/3] avformat/jpegxl_probe: Check init_get_bits8() for failure | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Mon, May 16, 2022 at 03:16:04AM +0200, Michael Niedermayer wrote: > Fixes: missing error check > Fixes: CID717495 > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavformat/act.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) will apply [...]
diff --git a/libavformat/act.c b/libavformat/act.c index 6dd9f62a87..da73fcceca 100644 --- a/libavformat/act.c +++ b/libavformat/act.c @@ -68,6 +68,7 @@ static int read_header(AVFormatContext *s) AVIOContext *pb = s->pb; int size; AVStream* st; + int ret; int min,sec,msec; @@ -77,7 +78,9 @@ static int read_header(AVFormatContext *s) avio_skip(pb, 16); 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
Fixes: missing error check Fixes: CID717495 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/act.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)