summaryrefslogtreecommitdiffstats
path: root/demux/aviheader.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-11 21:42:46 +0200
committerwm4 <wm4@nowhere>2013-04-20 23:28:21 +0200
commit4e531d0f2a27f8f4036acb4c3403503f7853e9da (patch)
tree5f24d06104bff33e108931085966f551686b14d3 /demux/aviheader.c
parent75178af8b4dd9f42e29fcad62778679888234ef0 (diff)
downloadmpv-4e531d0f2a27f8f4036acb4c3403503f7853e9da.tar.bz2
mpv-4e531d0f2a27f8f4036acb4c3403503f7853e9da.tar.xz
demux_mkv: factor block reading
The code for reading block data was duplicated. Move it into a function. Instead of returning on error (possibly due to corrupt data) and signalling EOF, continue by trying to find the next block. This makes error handling slightly simpler too, because you don't have to care about freeing the current block. We could still signal EOF in this case, but trying to resync sounds better for dealing with corrupted files.
Diffstat (limited to 'demux/aviheader.c')
0 files changed, 0 insertions, 0 deletions