[MPlayer-cvslog] r25147 - trunk/vobsub.c

ulion subversion at mplayerhq.hu
Fri Nov 23 14:17:36 CET 2007


Author: ulion
Date: Fri Nov 23 14:17:36 2007
New Revision: 25147

Log:
Check boundary for queue's current_index.


Modified:
   trunk/vobsub.c

Modified: trunk/vobsub.c
==============================================================================
--- trunk/vobsub.c	(original)
+++ trunk/vobsub.c	Fri Nov 23 14:17:36 2007
@@ -1280,7 +1280,8 @@ void vobsub_seek(void * vobhandle, float
 	    return;
     queue = vob->spu_streams + vobsub_id;
     queue->current_index = 0;
-    while ((queue->packets + queue->current_index)->pts100 < seek_pts100)
+    while (queue->current_index < queue->packets_size
+            && (queue->packets + queue->current_index)->pts100 < seek_pts100)
       ++queue->current_index;
     if (queue->current_index > 0)
       --queue->current_index;



More information about the MPlayer-cvslog mailing list