diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-26 20:16:25 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-26 21:08:57 +0100 |
commit | 89d5262289ae02f31e1d04ac1400ca5c56242d50 (patch) | |
tree | 5b78aed3bb6c5cf0f4cbf7fd2d059142a95d9418 /libavcodec/mpeg4videodec.c | |
parent | 67be7fb43259d98414144916ceccbfff59fdde68 (diff) | |
download | ffmpeg-89d5262289ae02f31e1d04ac1400ca5c56242d50.tar.gz |
mpeg4videodec: use ROUNDED_DIV for pts calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r-- | libavcodec/mpeg4videodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index a55ab3474e..acbc525a38 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -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) |