mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00: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:
parent
48c0dba23b
commit
0a12b84d3b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue