1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavformat
Andreas Rheinhardt a569a7b3bb avformat/matroskadec: Improve read error/EOF checks II
This commit fixes a number of bugs:

1. There was no check that no read error/EOF occured during
ebml_read_uint, ebml_read_sint and ebml_read_float.
2. ebml_read_ascii and ebml_read_binary did sometimes not forward
error codes; instead they simply returned AVERROR(EIO).
3. In particular, AVERROR_EOF hasn't been used and no dedicated error
message for it existed. This has been changed.

In order to reduce code duplication, the new error code NEEDS_CHECKING
has been introduced which makes ebml_parse check the AVIOContext's
status for errors.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-06-24 22:19:03 -03:00
..
2019-05-20 11:58:12 -07:00
2019-05-20 11:58:12 -07:00
2018-05-06 15:07:28 +08:00
2019-03-20 18:38:48 +01:00
2019-05-20 11:58:12 -07:00
2019-06-14 13:21:38 +08:00
2019-05-03 10:18:53 +05:30
2019-03-20 18:38:48 +01:00
2019-05-20 11:58:12 -07:00
2019-06-10 21:35:20 +02:00
2018-09-11 21:48:49 +01:00
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2019-06-12 20:06:20 +10:00
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2019-03-20 18:38:48 +01:00
2018-03-07 22:26:53 +01:00
2019-06-14 21:36:39 +02:00
2019-06-21 18:28:00 +02:00