diff ratecontrol.c @ 2494:36d70fbb31c5 libavcodec

mb_lmin/max to limit the per mb quality for the ratecontrol independant from the frame limits
author michael
date Wed, 02 Feb 2005 19:33:48 +0000
parents 258120c61eea
children 511e3afc43e1
line wrap: on
line diff
--- a/ratecontrol.c	Wed Feb 02 18:49:04 2005 +0000
+++ b/ratecontrol.c	Wed Feb 02 19:33:48 2005 +0000
@@ -506,8 +506,8 @@
     float cplx_sum= 0.0;
     float cplx_tab[s->mb_num];
     float bits_tab[s->mb_num];
-    const int qmin= s->avctx->lmin;
-    const int qmax= s->avctx->lmax;
+    const int qmin= s->avctx->mb_lmin;
+    const int qmax= s->avctx->mb_lmax;
     Picture * const pic= &s->current_picture;
     const int mb_width = s->mb_width;
     const int mb_height = s->mb_height;