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/pva.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/pva.c')
-rw-r--r-- | libavformat/pva.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/pva.c b/libavformat/pva.c index ff30746bcb..aecd049c03 100644 --- a/libavformat/pva.c +++ b/libavformat/pva.c @@ -20,6 +20,7 @@ */ #include "avformat.h" +#include "avio_internal.h" #include "internal.h" #include "mpeg.h" @@ -147,9 +148,9 @@ recover: goto recover; } - ret = avio_read(pb, pes_header_data, pes_header_data_length); - if (ret != pes_header_data_length) - return ret < 0 ? ret : AVERROR_INVALIDDATA; + ret = ffio_read_size(pb, pes_header_data, pes_header_data_length); + if (ret < 0) + return ret; length -= 9 + pes_header_data_length; pes_packet_length -= 3 + pes_header_data_length; |