# HG changeset patch # User michael # Date 1088597135 0 # Node ID bec4623c220103e87b551f9c645a60b1700a0fb2 # Parent f68c446a5b9718951f112c4cd1bdbcc48d08d90e timestamp duplication bugfix diff -r f68c446a5b97 -r bec4623c2201 parser.c --- a/parser.c Sun Jun 27 16:06:15 2004 +0000 +++ b/parser.c Wed Jun 30 12:05:35 2004 +0000 @@ -92,12 +92,14 @@ s->fetch_timestamp=0; s->last_pts = pts; s->last_dts = dts; + s->cur_frame_pts[k] = + s->cur_frame_dts[k] = AV_NOPTS_VALUE; } } /* WARNING: the returned index can be negative */ index = s->parser->parser_parse(s, avctx, poutbuf, poutbuf_size, buf, buf_size); -//av_log(NULL, AV_LOG_DEBUG, "parser: in:%lld, %lld, out:%lld, %lld, in:%d out:%d %d\n", pts, dts, s->last_pts, s->last_dts, buf_size, *poutbuf_size, avctx->codec_id); +//av_log(NULL, AV_LOG_DEBUG, "parser: in:%lld, %lld, out:%lld, %lld, in:%d out:%d id:%d\n", pts, dts, s->last_pts, s->last_dts, buf_size, *poutbuf_size, avctx->codec_id); /* update the file pointer */ if (*poutbuf_size) { /* fill the data for the current frame */