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/pva.c
parentdccd1d2a581606f858e553b9f2a4e8aba1e460b7 (diff)
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.c7
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;