changeset 1703:6797179a0649 libavcodec

lrintf patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
author michael
date Mon, 22 Dec 2003 19:42:28 +0000
parents fbab59f03144
children 8bccf5eda14b
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Mon Dec 22 19:06:01 2003 +0000
+++ b/mpegvideo.c	Mon Dec 22 19:42:28 2003 +0000
@@ -1874,7 +1874,7 @@
 
         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;