comparison parser.c @ 2107:bec4623c2201 libavcodec

timestamp duplication bugfix
author michael
date Wed, 30 Jun 2004 12:05:35 +0000
parents f796043935f3
children f8948ed6553a
comparison
equal deleted inserted replaced
2106:f68c446a5b97 2107:bec4623c2201
90 /* fill first PTS/DTS */ 90 /* fill first PTS/DTS */
91 if (s->fetch_timestamp){ 91 if (s->fetch_timestamp){
92 s->fetch_timestamp=0; 92 s->fetch_timestamp=0;
93 s->last_pts = pts; 93 s->last_pts = pts;
94 s->last_dts = dts; 94 s->last_dts = dts;
95 s->cur_frame_pts[k] =
96 s->cur_frame_dts[k] = AV_NOPTS_VALUE;
95 } 97 }
96 } 98 }
97 99
98 /* WARNING: the returned index can be negative */ 100 /* WARNING: the returned index can be negative */
99 index = s->parser->parser_parse(s, avctx, poutbuf, poutbuf_size, buf, buf_size); 101 index = s->parser->parser_parse(s, avctx, poutbuf, poutbuf_size, buf, buf_size);
100 //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); 102 //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);
101 /* update the file pointer */ 103 /* update the file pointer */
102 if (*poutbuf_size) { 104 if (*poutbuf_size) {
103 /* fill the data for the current frame */ 105 /* fill the data for the current frame */
104 s->frame_offset = s->last_frame_offset; 106 s->frame_offset = s->last_frame_offset;
105 s->pts = s->last_pts; 107 s->pts = s->last_pts;