summaryrefslogtreecommitdiffstats
path: root/mixer.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-22 10:14:41 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-22 10:26:45 +0300
commitfc39d484653e40f9b79d33a595cfd550d61a6a34 (patch)
treef51913ac02e459d833eb2e3d6932da66d0c56241 /mixer.h
parent90bedd0b872b6eea02351aafb62e30ffec5c2152 (diff)
downloadmpv-fc39d484653e40f9b79d33a595cfd550d61a6a34.tar.bz2
mpv-fc39d484653e40f9b79d33a595cfd550d61a6a34.tar.xz
demux_mkv: store streams sequentially in demuxer->[avs]_streams
demux_mkv used the Matroska TrackNumber as the array offset in demuxer stream lists. The TrackNumber entry stored in the file can be an arbitrary 64-bit value, and some of the code could try reading from the arrays with that offset, causing a crash if the file had insane values. Fill the arrays sequentially instead. Also add some checks to make the handling of too high stream counts more robust.
Diffstat (limited to 'mixer.h')
0 files changed, 0 insertions, 0 deletions