avformat/asfdec_f: Assert that packet positions match in asf_read_pts()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
John Adlum 2015-07-01 16:41:26 +02:00 committed by Michael Niedermayer
parent 28206b75e8
commit 811008b8ee
1 changed files with 1 additions and 0 deletions

View File

@ -1513,6 +1513,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
// assert((asf_st->packet_pos - s->data_offset) % s->packet_size == 0);
pos = asf_st->packet_pos;
av_assert1(pkt->pos == asf_st->packet_pos);
av_add_index_entry(s->streams[i], pos, pts, pkt->size,
pos - start_pos[i] + 1, AVINDEX_KEYFRAME);