diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-05-17 00:30:11 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-07-16 16:16:59 -0300 |
commit | 3ed2755baaf3f8a9f088f8c7b9cc7bd8c629e8fb (patch) | |
tree | 1161e0b82d662b2ffcfd7d5835aca54b078429ca /libavformat/jacosubdec.c | |
parent | 38255cdcf815ff44bb0ab10cb16b96e409f2eeed (diff) | |
download | ffmpeg-3ed2755baaf3f8a9f088f8c7b9cc7bd8c629e8fb.tar.gz |
avformat/matroskadec: Redo EOF handling
This commit closes the last hole in the system of checks for a
known-length file ending too early: Now an error message is emitted
in case the file ends directly after an EBML element.
Furthermore, this commit adds a check and a corresponding warning
whether there is data beyond the Matroska segment (only reasonable for
known-length segments). If everything looks alright, then parsing is
stopped as soon as EOF is reached (in contrast, the earlier code would
always call matroska_resync at the end).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/jacosubdec.c')
0 files changed, 0 insertions, 0 deletions