aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-22 06:51:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-25 13:51:27 +0200
commit6dc8d4eea828c119c49b7b5742f7a6f9989b720b (patch)
tree38786f3e04549859816645f351fb169086311d31 /libavformat
parent590fffe6adcfdc13e6f520a47be0ece72fe0707d (diff)
downloadffmpeg-6dc8d4eea828c119c49b7b5742f7a6f9989b720b.tar.gz
avformat/westwood_vqa: Check ffio_ensure_seekback()
Fixes Coverity issue #1598405. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/westwood_vqa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
index 3a31e3f5e8..9755fcc9c1 100644
--- a/libavformat/westwood_vqa.c
+++ b/libavformat/westwood_vqa.c
@@ -201,8 +201,10 @@ static int wsvqa_read_packet(AVFormatContext *s,
/* We need a big seekback buffer because there can be SNxx, VIEW and ZBUF
* chunks (<512 KiB total) in the stream before we read VQFR (<256 KiB) and
* seek back here. */
- ffio_ensure_seekback(pb, wsvqa->vqfl_chunk_size + (512 + 256) * 1024);
+ ret = ffio_ensure_seekback(pb, wsvqa->vqfl_chunk_size + (512 + 256) * 1024);
avio_skip(pb, chunk_size + skip_byte);
+ if (ret < 0)
+ return ret;
continue;
} else if ((chunk_type == SND0_TAG) || (chunk_type == SND1_TAG) ||
(chunk_type == SND2_TAG) || (chunk_type == VQFR_TAG)) {