]> git.sesse.net Git - ffmpeg/commitdiff
adjust_write_index() fix by ("Curi Fabio Eduardo (SFL)" <curif at TELEFONICA dot...
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Mar 2004 20:52:40 +0000 (20:52 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Mar 2004 20:52:40 +0000 (20:52 +0000)
Originally committed as revision 2903 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/ffm.c

index eba523443745b6f0b02e0e76d820ef6afe28a724..651abaa8f264cb1ef71a2b8b8afc93851f7e0fb2 100644 (file)
@@ -391,7 +391,7 @@ static void adjust_write_index(AVFormatContext *s)
     pts = get_pts(s, pos_max);
 
     if (pts - 100000 > pts_start) 
-        return;
+        goto end;
 
     ffm->write_index = FFM_PACKET_SIZE;
 
@@ -424,6 +424,7 @@ static void adjust_write_index(AVFormatContext *s)
     //printf("Adjusted write index from %lld to %lld: pts=%0.6f\n", orig_write_index, ffm->write_index, pts / 1000000.);
     //printf("pts range %0.6f - %0.6f\n", get_pts(s, 0) / 1000000. , get_pts(s, ffm->file_size - 2 * FFM_PACKET_SIZE) / 1000000. );
 
+ end:
     url_fseek(pb, ptr, SEEK_SET);
 }