[FFmpeg-cvslog] avformat/apvdec: Use ffio_read_size()

Andreas Rheinhardt git at videolan.org
Thu May 1 00:51:14 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Apr 27 20:14:35 2025 +0200| [0a12b84d3b4025d55c443e5356d6eba546bcc1bb] | committer: Andreas Rheinhardt

avformat/apvdec: Use ffio_read_size()

Fixes potential use of uninitialized data.

Reviewed-by: Mark Thompson <sw at jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a12b84d3b4025d55c443e5356d6eba546bcc1bb
---

 libavformat/apvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 



More information about the ffmpeg-cvslog mailing list