Commit 81c57101 authored by bcoudurier's avatar bcoudurier

do not reference remainder packets in the parser, fix timestamps fetching

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18958 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d1824e1
......@@ -153,7 +153,8 @@ int av_parser_parse2(AVCodecParserContext *s,
/* padding is always necessary even if EOF, so we add it here */
memset(dummy_buf, 0, sizeof(dummy_buf));
buf = dummy_buf;
} else {
} else if (s->cur_offset + buf_size !=
s->cur_frame_end[s->cur_frame_start_index]) { /* skip remainder packets */
/* add a new packet descriptor */
i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
s->cur_frame_start_index = i;
......
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