mirror of
https://github.com/mpv-player/mpv
synced 2024-12-11 09:25:56 +00:00
Fix cue_read_toc_entry to also reject negative track numbers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30808 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
686565165f
commit
4464a64ff7
@ -444,7 +444,7 @@ static int cue_read_toc_entry(void) {
|
|||||||
int track = cue_current_pos.track - 1;
|
int track = cue_current_pos.track - 1;
|
||||||
|
|
||||||
/* check if its a valid track, if not return -1 */
|
/* check if its a valid track, if not return -1 */
|
||||||
if (track >= nTracks)
|
if (track < 0 || track >= nTracks)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user