summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-26 20:16:25 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-26 21:08:57 +0100
commit89d5262289ae02f31e1d04ac1400ca5c56242d50 (patch)
tree5b78aed3bb6c5cf0f4cbf7fd2d059142a95d9418
parent67be7fb43259d98414144916ceccbfff59fdde68 (diff)
mpeg4videodec: use ROUNDED_DIV for pts calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpeg4videodec.c2
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)