diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 21:16:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-12 00:08:28 +0200 |
commit | 59cbedfc3df3bc3386407064dbda86962ba33c2f (patch) | |
tree | 7db1e969ddfad5ba903df83d9c9c1973d815060a /libavformat | |
parent | 3632f35c8e163f6aa6d63c317e3e1fca6a4a5fab (diff) | |
download | ffmpeg-59cbedfc3df3bc3386407064dbda86962ba33c2f.tar.gz |
update_initial_timestamps: increase pts_buffer size
Fixes CID733786
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index f0fbb53c17..13a2f2b839 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -891,7 +891,7 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index, { AVStream *st= s->streams[stream_index]; AVPacketList *pktl= s->parse_queue ? s->parse_queue : s->packet_buffer; - int64_t pts_buffer[MAX_REORDER_DELAY]; + int64_t pts_buffer[MAX_REORDER_DELAY+1]; int64_t shift; int i, delay; @@ -903,7 +903,7 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index, st->cur_dts= dts; shift = st->first_dts - RELATIVE_TS_BASE; - for (i=0; i<MAX_REORDER_DELAY; i++) + for (i=0; i<MAX_REORDER_DELAY+1; i++) pts_buffer[i] = AV_NOPTS_VALUE; if (is_relative(pts)) |