diff options
author | wm4 <wm4@nowhere> | 2013-03-30 20:43:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-30 20:51:45 +0100 |
commit | 014298522875f7f41d10eb3e41fcd97926cdedee (patch) | |
tree | 04a2f600554951b19e5d596feecee9a14f55b522 /core/defaultopts.c | |
parent | e31567fe41e853ea355b55ddb15a184b67ab9e16 (diff) |
demux_mkv: don't print non-sense warning on normal EOF
Commit ac1c5e6 (demux_mkv: improve robustness against broken files)
added code to skip to the next cluster on error conditions. However,
reaching normal EOF triggers this code as well, so explicitly check
for EOF before this happens. Note that the EOF flag is only set _after_
reading the last byte, so EOF needs to be checked after the fact. (Or
in other words, we must check for EOF after the ebml_read_id() call.)
(To answer the question why reading packets actually reaches EOF, even
if there's the seek index between the last packet and the end of the
file: the cluster reading code skips the seeking related EBML elements
as normal part of operation, so it hits EOF gracefully when trying to
find the next cluster.)
Diffstat (limited to 'core/defaultopts.c')
0 files changed, 0 insertions, 0 deletions