Mercurial > libavcodec.hg
changeset 9717:5ebac9debadf libavcodec
do not reference remainder packets in the parser, fix timestamps fetching
author | bcoudurier |
---|---|
date | Tue, 26 May 2009 23:58:30 +0000 |
parents | d45e44454d13 |
children | 017967b3067f |
files | parser.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/parser.c Tue May 26 21:34:56 2009 +0000 +++ b/parser.c Tue May 26 23:58:30 2009 +0000 @@ -153,7 +153,8 @@ /* 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;