Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-06 23:47:22 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-06 23:47:22 +0300
commitd1ac6456369fecdc99044e69bb22130bbedc0558 (patch)
treeaf3374b2037931e6c37ababaedbc553d8432f824 /libavformat/riffdec.c
parentdccd1d2a581606f858e553b9f2a4e8aba1e460b7 (diff)
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.c6
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;
}