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

ib subversion at mplayerhq.hu
Wed Aug 26 17:11:45 CEST 2015


Author: ib
Date: Wed Aug 26 17:11:44 2015
New Revision: 37464

Log:
Fix start sector calculation bug in the cue driver.

Use correct (i.e. current track related) MSF data for the calculation.

This bug, which was existing from day one, gave wrong position
information during playback and would either stop playback before
reaching the end or extend playback beyond the current track.

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Tue Aug 25 12:19:53 2015	(r37463)
+++ trunk/stream/stream_cue.c	Wed Aug 26 17:11:44 2015	(r37464)
@@ -421,8 +421,8 @@ static int cue_read_cue (const char *in_
   for(i = 0; i <= nTracks; i++)
   {
     tracks[i].start_sector = cue_msf_2_sector(tracks[i].minute,
-                                              tracks[nTracks].second,
-                                              tracks[nTracks].frame);
+                                              tracks[i].second,
+                                              tracks[i].frame);
 
     /* if we're the first track we don't need to offset of the one befor */
     if (i == 0)


More information about the MPlayer-cvslog mailing list