]> git.sesse.net Git - x264/commitdiff
Fix 10l in timecode seeking
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Mon, 29 Mar 2010 07:05:30 +0000 (00:05 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 31 Mar 2010 17:42:36 +0000 (10:42 -0700)
input/timecode.c

index 0dddb27b391c918933317df6bc47d3328b0699f4..a0c39916142dcdbc90bc22607cafbac7314a1673 100644 (file)
@@ -227,7 +227,7 @@ static int parse_tcfile( FILE *tcfile_in, timecode_hnd_t *h, video_info_t *info
                     start = end = timecodes_num - 1;
                 seq_fps_sig = sigexp10( seq_fps, &exponent );
                 seq_fps = MKV_TIMEBASE_DEN / ( round( MKV_TIMEBASE_DEN / seq_fps_sig ) / exponent );
-                for( ; num < start - h->seek && num < timecodes_num - 1; num++ )
+                for( ; num < start && num < timecodes_num - 1; num++ )
                     timecodes[num + 1] = timecodes[num] + 1 / assume_fps;
                 for( num = start; num <= end && num < timecodes_num - 1; num++ )
                     timecodes[num + 1] = timecodes[num] + 1 / seq_fps;