Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-05-15 23:55:12 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2022-10-09 22:32:52 +0300
commitc8177552a7291bfe873443194bd58d921c662f6d (patch)
treeceb55ee9d508206dd7d7330f4b72c2f8fbd0950d /libavformat
parent55a3423863fcdb070dc6cf2ff2d7f88399ee9bfb (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/act.c b/libavformat/act.c
index 26425ca1bb..f6edfb44ab 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