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/aaxdec.c | |
parent | dccd1d2a581606f858e553b9f2a4e8aba1e460b7 (diff) |
avformat: Use ffio_read_size where appropriate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/aaxdec.c')
-rw-r--r-- | libavformat/aaxdec.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libavformat/aaxdec.c b/libavformat/aaxdec.c index ea0f2af1c9..b08ee036ed 100644 --- a/libavformat/aaxdec.c +++ b/libavformat/aaxdec.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "avio_internal.h" #include "internal.h" typedef struct AAXColumn { @@ -215,12 +216,9 @@ static int aax_read_header(AVFormatContext *s) if (ret64 < 0) return ret; - ret = avio_read(pb, a->string_table, a->strings_size); - if (ret != a->strings_size) { - if (ret < 0) - return ret; - return AVERROR(EIO); - } + ret = ffio_read_size(pb, a->string_table, a->strings_size); + if (ret < 0) + return ret; for (int c = 0; c < a->columns; c++) { int64_t data_offset = 0; |