# HG changeset patch # User michael # Date 1212412441 0 # Node ID 6ef755b234c2c306af4eccfe849633f0c4757b5b # Parent 7c8df4f99d0870836fabbea83f2804445f6c7cfe cosmetic diff -r 7c8df4f99d08 -r 6ef755b234c2 parser.c --- 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];