Commit d4dfa97a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: reset pts_buffer in estimate_timings_from_pts()

This fixes the first few dts after find_stream_info
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f288e1b6
......@@ -2441,9 +2441,13 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
avio_seek(ic->pb, old_offset, SEEK_SET);
for (i = 0; i < ic->nb_streams; i++) {
int j;
st = ic->streams[i];
st->cur_dts = st->first_dts;
st->last_IP_pts = AV_NOPTS_VALUE;
for (j = 0; j < MAX_REORDER_DELAY + 1; j++)
st->pts_buffer[j] = AV_NOPTS_VALUE;
}
}
......
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