summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-08-20 02:43:51 +0300
committerUoti Urpala <uau@mplayer2.org>2011-08-20 02:43:51 +0300
commit01fa34d53790ab9efd214bcc12f46b01c9d8057e (patch)
treece83e19a3451c142d3d3c51b8846b25dd5e1884d /.gitignore
parentf253de24af2acb6a60a0b22d3a891e3a9d6cd2c0 (diff)
downloadmpv-01fa34d53790ab9efd214bcc12f46b01c9d8057e.tar.bz2
mpv-01fa34d53790ab9efd214bcc12f46b01c9d8057e.tar.xz
demux_mkv: check for valid track in video/audio switching
When switching audio or video tracks, demux_mkv only checked that the new index fell in the range corresponding to tracks existing in the file being played. However, if the demuxer can not recognize the format of a track or detects an error, some of those tracks in the file may not be exported from the demuxer and are not visible to the rest of the player. Selecting such a track would cause a crash. Add checks skip such tracks when cycling to next track and switch to nosound instead if given an explicit track number corresponding to such a track.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions