changeset 30766:6c5e12f5820b

Fix cue_read_toc_entry to also reject negative track numbers
author reimar
date Mon, 01 Mar 2010 20:07:37 +0000
parents 3e230b384997
children 29588c0eafd3
files stream/stream_cue.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cue.c	Mon Mar 01 19:59:54 2010 +0000
+++ b/stream/stream_cue.c	Mon Mar 01 20:07:37 2010 +0000
@@ -444,7 +444,7 @@
   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;