return s;
}
-void ff_fetch_timestamp(AVCodecParserContext *s, int off){
+void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){
int i;
s->dts= s->pts= AV_NOPTS_VALUE;
s->offset= 0;
s->dts= s->cur_frame_dts[i];
s->pts= s->cur_frame_pts[i];
s->offset = s->next_frame_offset - s->cur_frame_offset[i];
+ if(remove)
+ s->cur_frame_offset[i]= INT64_MAX;
}
}
}
s->fetch_timestamp=0;
s->last_pts = s->pts;
s->last_dts = s->dts;
- ff_fetch_timestamp(s, 0);
+ ff_fetch_timestamp(s, 0, 0);
}
/* WARNING: the returned index can be negative */