diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-06-30 12:05:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-06-30 12:05:35 +0000 |
commit | c77a9a0e2619ada4e6d2871be7257709ab750848 (patch) | |
tree | 52c49b196abac193cf64d3b07c5c68fce11a8344 /libavcodec/parser.c | |
parent | ff9068884492c76e3fbf146dfb34d1eed26224e7 (diff) | |
download | ffmpeg-c77a9a0e2619ada4e6d2871be7257709ab750848.tar.gz |
timestamp duplication bugfix
Originally committed as revision 3269 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r-- | libavcodec/parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index ed386611aa..7b01da4a69 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -92,12 +92,14 @@ int av_parser_parse(AVCodecParserContext *s, 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 */ |