diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-22 10:14:41 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-22 10:26:45 +0300 |
commit | fc39d484653e40f9b79d33a595cfd550d61a6a34 (patch) | |
tree | f51913ac02e459d833eb2e3d6932da66d0c56241 /mixer.h | |
parent | 90bedd0b872b6eea02351aafb62e30ffec5c2152 (diff) | |
download | mpv-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