diff options
author | wm4 <wm4@nowhere> | 2013-04-11 20:31:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-04-20 23:28:21 +0200 |
commit | c2bf06f63e6080503ff19db10ef892252e441156 (patch) | |
tree | f12ca02bee56cc123b0e62adb4f488901f0f990e /sub/subreader.h | |
parent | c4e43aaf896ac2267f8f2c10c8c37c3cb565f640 (diff) | |
download | mpv-c2bf06f63e6080503ff19db10ef892252e441156.tar.bz2 mpv-c2bf06f63e6080503ff19db10ef892252e441156.tar.xz |
demux_mkv: simplify cluster reading code
The end positions of the current cluster and block were managed by
tracking their size and how much of them were read, instead of just
using the absolute end positions.
I'm not sure about the reasons why this code was originally written
this way. One obvious concern is reading from pipes and such, but the
stream layers hides this. stream_tell(s) works even when reading from
pipes. It's also a fast call, and doesn't involve the stream
implementation or syscalls. Keeping track of the cluster/block end is
simpler and there's no reason why this wouldn't work.
Diffstat (limited to 'sub/subreader.h')
0 files changed, 0 insertions, 0 deletions