avformat/asfdec_f: Assert that packet positions match in asf_read_pts()
authorJohn Adlum <john.adlum@nospam>
Wed, 1 Jul 2015 14:41:26 +0000 (16:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 16:47:59 +0000 (18:47 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec_f.c

index 554989e..6dbd2b9 100644 (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);