mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
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>
This commit is contained in:
@ -164,7 +164,7 @@ static int apv_read_header(AVFormatContext *s)
|
|||||||
err = ffio_ensure_seekback(s->pb, sizeof(buffer));
|
err = ffio_ensure_seekback(s->pb, sizeof(buffer));
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
size = avio_read(s->pb, buffer, sizeof(buffer));
|
size = ffio_read_size(s->pb, buffer, sizeof(buffer));
|
||||||
if (size < 0)
|
if (size < 0)
|
||||||
return size;
|
return size;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user