summaryrefslogtreecommitdiffstats
path: root/libavformat/asfdec_f.c
diff options
context:
space:
mode:
authorJohn Adlum <john.adlum@nospam>2015-07-01 16:41:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-07-01 18:47:59 +0200
commit811008b8eeaad4b7efe7281b18e9bff89e37d470 (patch)
tree1297064c33fe5e69490e862f3ddd197902d292c8 /libavformat/asfdec_f.c
parent28206b75e81c7713476bf3736ccb6f620d96540d (diff)
downloadffmpeg-streaming-811008b8eeaad4b7efe7281b18e9bff89e37d470.zip
ffmpeg-streaming-811008b8eeaad4b7efe7281b18e9bff89e37d470.tar.gz
avformat/asfdec_f: Assert that packet positions match in asf_read_pts()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec_f.c')
-rw-r--r--libavformat/asfdec_f.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index 554989e..6dbd2b9 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -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);
OpenPOWER on IntegriCloud