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:
reimar 2010-03-01 20:07:37 +00:00
parent 686565165f
commit 4464a64ff7
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ static int cue_read_toc_entry(void) {
int track = cue_current_pos.track - 1;
/* check if its a valid track, if not return -1 */
if (track >= nTracks)
if (track < 0 || track >= nTracks)
return -1;