diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-06 22:47:22 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-06 22:47:22 +0200 |
commit | d1ac6456369fecdc99044e69bb22130bbedc0558 (patch) | |
tree | af3374b2037931e6c37ababaedbc553d8432f824 /libavformat/riffdec.c | |
parent | dccd1d2a581606f858e553b9f2a4e8aba1e460b7 (diff) | |
download | ffmpeg-d1ac6456369fecdc99044e69bb22130bbedc0558.tar.gz |
avformat: Use ffio_read_size where appropriate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/riffdec.c')
-rw-r--r-- | libavformat/riffdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 444b9fc00d..bd32e59837 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -32,10 +32,10 @@ int ff_get_guid(AVIOContext *s, ff_asf_guid *g) { int ret; av_assert0(sizeof(*g) == 16); //compiler will optimize this out - ret = avio_read(s, *g, sizeof(*g)); - if (ret < (int)sizeof(*g)) { + ret = ffio_read_size(s, *g, sizeof(*g)); + if (ret < 0) { memset(*g, 0, sizeof(*g)); - return ret < 0 ? ret : AVERROR_INVALIDDATA; + return ret; } return 0; } |