diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-18 20:52:40 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-18 20:52:40 +0000 |
commit | 79292510a86ea7398ab57cd115a6540f60f0579a (patch) | |
tree | db302ca91e15a2b7fa8db97191cfa9258b46f43a | |
parent | 5825425795f46280feb39cfb03f9dfb20da2089a (diff) | |
download | ffmpeg-79292510a86ea7398ab57cd115a6540f60f0579a.tar.gz |
adjust_write_index() fix by ("Curi Fabio Eduardo (SFL)" <curif at TELEFONICA dot COM dot AR>)
Originally committed as revision 2903 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/ffm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/ffm.c b/libavformat/ffm.c index eba5234437..651abaa8f2 100644 --- a/libavformat/ffm.c +++ b/libavformat/ffm.c @@ -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); } |