Commit 7938ddbe authored by michael's avatar michael

adjust_write_index() fix by ("Curi Fabio Eduardo (SFL)" <curif at TELEFONICA dot COM dot AR>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2903 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 45f93f71
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment