From 1c004e5622378cd62f574083f5d7651c0e455036 Mon Sep 17 00:00:00 2001 From: "Steven M. Schultz" Date: Mon, 22 Dec 2003 19:42:28 +0000 Subject: [PATCH] lrintf patch by ("Steven M. Schultz" ) Originally committed as revision 2630 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index e5b54876d7..e04b14d10d 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1874,7 +1874,7 @@ int MPV_encode_picture(AVCodecContext *avctx, assert(s->repeat_first_field==0 && s->avctx->repeat_pic==0); - vbv_delay= lrint(90000 * s->rc_context.buffer_index / s->avctx->rc_max_rate); + vbv_delay= lrintf(90000 * s->rc_context.buffer_index / s->avctx->rc_max_rate); assert(vbv_delay < 0xFFFF); s->vbv_delay_ptr[0] &= 0xF8;