mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
mpeg4videodec: use ROUNDED_DIV for pts calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
67be7fb432
commit
89d5262289
@ -2007,7 +2007,7 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
|
||||
}
|
||||
|
||||
if(s->avctx->time_base.num)
|
||||
s->current_picture_ptr->f.pts = (s->time + s->avctx->time_base.num / 2) / s->avctx->time_base.num;
|
||||
s->current_picture_ptr->f.pts = ROUNDED_DIV(s->time, s->avctx->time_base.num);
|
||||
else
|
||||
s->current_picture_ptr->f.pts = AV_NOPTS_VALUE;
|
||||
if(s->avctx->debug&FF_DEBUG_PTS)
|
||||
|
Loading…
Reference in New Issue
Block a user