]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpeg4videodec.c
Merge commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8'
[ffmpeg] / libavcodec / mpeg4videodec.c
index b78f735a777234e3494c2dbc9146a07ad3bd75c3..acbc525a38e8c213a784101e0e61ad7419d5e3a1 100644 (file)
@@ -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)
@@ -2255,7 +2255,7 @@ end:
     return decode_vop_header(s, gb);
 }
 
-av_cold int ff_mpeg4videodec_static_init(void) {
+av_cold void ff_mpeg4videodec_static_init(void) {
     static int done = 0;
 
     if (!done) {