diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-05-15 22:55:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-01 00:41:28 +0200 |
commit | b9bda06ea5bca8745b9ef471fd80c21be8f498b5 (patch) | |
tree | bcf6f3efbbf16ed9c00ef87cc93c7a0f755bedb3 | |
parent | 0cbe98cbbef6390596f30fee8d75cc95ac4c4ddf (diff) | |
download | ffmpeg-b9bda06ea5bca8745b9ef471fd80c21be8f498b5.tar.gz |
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>
-rw-r--r-- | libavformat/act.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/act.c b/libavformat/act.c index a369157647..62c9a56e0b 100644 --- a/libavformat/act.c +++ b/libavformat/act.c @@ -67,6 +67,7 @@ static int read_header(AVFormatContext *s) AVIOContext *pb = s->pb; int size; AVStream* st; + int ret; int min,sec,msec; @@ -76,7 +77,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 |