Mercurial > libavcodec.hg
changeset 2251:ab849bab3472 libavcodec
100l
author | michael |
---|---|
date | Fri, 24 Sep 2004 17:30:04 +0000 |
parents | 902caf560c43 |
children | bfdec93a5a42 |
files | mpegvideo.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Thu Sep 23 22:20:17 2004 +0000 +++ b/mpegvideo.c Fri Sep 24 17:30:04 2004 +0000 @@ -1974,15 +1974,16 @@ return -1; } } + s->user_specified_pts= pic->pts; }else{ if(s->user_specified_pts != AV_NOPTS_VALUE){ + s->user_specified_pts= pic->pts= s->user_specified_pts + AV_TIME_BASE*(int64_t)s->avctx->frame_rate_base / s->avctx->frame_rate; av_log(s->avctx, AV_LOG_INFO, "Warning: AVFrame.pts=? trying to guess (%Ld)\n", pic->pts); }else{ pic->pts= av_rescale(pic->display_picture_number*(int64_t)s->avctx->frame_rate_base, AV_TIME_BASE, s->avctx->frame_rate); } } - s->user_specified_pts= pic->pts; } /* shift buffer entries */