Commit 6645e8ca authored by Baptiste Coudurier's avatar Baptiste Coudurier

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

Originally committed as revision 18958 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 401a9950
...@@ -153,7 +153,8 @@ int av_parser_parse2(AVCodecParserContext *s, ...@@ -153,7 +153,8 @@ int av_parser_parse2(AVCodecParserContext *s,
/* padding is always necessary even if EOF, so we add it here */ /* padding is always necessary even if EOF, so we add it here */
memset(dummy_buf, 0, sizeof(dummy_buf)); memset(dummy_buf, 0, sizeof(dummy_buf));
buf = 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 */ /* add a new packet descriptor */
i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1); i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
s->cur_frame_start_index = i; 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