[MPlayer-cvslog] r30808 - trunk/stream/stream_cue.c

reimar subversion at mplayerhq.hu
Mon Mar 1 21:07:37 CET 2010


Author: reimar
Date: Mon Mar  1 21:07:37 2010
New Revision: 30808

Log:
Fix cue_read_toc_entry to also reject negative track numbers

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Mon Mar  1 20:59:54 2010	(r30807)
+++ trunk/stream/stream_cue.c	Mon Mar  1 21:07:37 2010	(r30808)
@@ -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;
 
 


More information about the MPlayer-cvslog mailing list