aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-27 20:14:35 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-30 23:32:55 +0200
commit0a12b84d3b4025d55c443e5356d6eba546bcc1bb (patch)
treeaa2bd7e5633287886849da37f397d7d6ed3b3230
parent48c0dba23b3ce8c2bcb180bd2c8029c3c2875424 (diff)
downloadffmpeg-0a12b84d3b4025d55c443e5356d6eba546bcc1bb.tar.gz
avformat/apvdec: Use ffio_read_size()
Fixes potential use of uninitialized data. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/apvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c
index e1ac34b003..9f94a901ec 100644
--- a/libavformat/apvdec.c
+++ b/libavformat/apvdec.c
@@ -164,7 +164,7 @@ static int apv_read_header(AVFormatContext *s)
err = ffio_ensure_seekback(s->pb, sizeof(buffer));
if (err < 0)
return err;
- size = avio_read(s->pb, buffer, sizeof(buffer));
+ size = ffio_read_size(s->pb, buffer, sizeof(buffer));
if (size < 0)
return size;