# HG changeset patch # User michael # Date 1079643160 0 # Node ID 3a40642dc4dfa9631ebba3cd9cc956d8fd64717d # Parent e14fcd57ad2fdc62298fae6e780719a9f4c16874 adjust_write_index() fix by ("Curi Fabio Eduardo (SFL)" ) diff -r e14fcd57ad2f -r 3a40642dc4df ffm.c --- a/ffm.c Mon Mar 15 03:29:32 2004 +0000 +++ b/ffm.c Thu Mar 18 20:52:40 2004 +0000 @@ -391,7 +391,7 @@ pts = get_pts(s, pos_max); if (pts - 100000 > pts_start) - return; + goto end; ffm->write_index = FFM_PACKET_SIZE; @@ -424,6 +424,7 @@ //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); }