Try to find out correct start time to make seeking faster and add some

extra checks to make sure the seeking function will not hang forever.

Originally committed as revision 5814 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger
2006-07-23 18:19:33 +00:00
parent 8dfe90941a
commit 22ffac707e
3 changed files with 34 additions and 5 deletions

View File

@@ -1097,7 +1097,7 @@ static void av_read_frame_flush(AVFormatContext *s)
* @param timestamp new dts expressed in time_base of param ref_st
* @param ref_st reference stream giving time_base of param timestamp
*/
static void av_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t timestamp){
void av_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t timestamp){
int i;
for(i = 0; i < s->nb_streams; i++) {