Mercurial > libavcodec.hg
changeset 6986:6ef755b234c2 libavcodec
cosmetic
author | michael |
---|---|
date | Mon, 02 Jun 2008 13:14:01 +0000 |
parents | 7c8df4f99d08 |
children | 2dde03056bd6 |
files | parser.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/parser.c Mon Jun 02 13:12:54 2008 +0000 +++ b/parser.c Mon Jun 02 13:14:01 2008 +0000 @@ -78,11 +78,12 @@ void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){ int i; + s->dts= s->pts= AV_NOPTS_VALUE; s->offset= 0; for(i = 0; i < AV_PARSER_PTS_NB; i++) { if ( s->next_frame_offset + off >= s->cur_frame_offset[i] - &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) + &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) && s->next_frame_offset + off < s->cur_frame_end[i]){ s->dts= s->cur_frame_dts[i]; s->pts= s->cur_frame_pts[i];