diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-05-15 23:55:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-06-14 18:06:21 +0300 |
commit | c5dba22ae49e549882937df10d7876970fe7e5e9 (patch) | |
tree | 45cbd91ad0c0d8787a01ceeac38e6748f844fc40 /libavformat | |
parent | 8775295080da8fc1a57493cb0e557366a65a0c0b (diff) |
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>
Diffstat (limited to 'libavformat')
-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 fe67411787..7cbffbfd05 100644 --- a/libavformat/act.c +++ b/libavformat/act.c @@ -66,6 +66,7 @@ static int read_header(AVFormatContext *s) AVIOContext *pb = s->pb; int size; AVStream* st; + int ret; int min,sec,msec; @@ -75,7 +76,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 |