changeset 388:83964a31b319 libavcodec

qmin==1 bugfix
author michaelni
date Fri, 17 May 2002 15:31:33 +0000
parents b8f3affeb8e1
children f874493a1970
files ratecontrol.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ratecontrol.c	Fri May 17 13:01:01 2002 +0000
+++ b/ratecontrol.c	Fri May 17 15:31:33 2002 +0000
@@ -155,7 +155,7 @@
         qmin= (int)(qmin*s->b_quant_factor+0.5);
         qmax= (int)(qmax*s->b_quant_factor+0.5);
     }
-    if(qmin<2) qmin=2;
+    if(qmin<1) qmin=1;
     if(qmax>31) qmax=31;
     if(qmax<=qmin) qmax= qmin;
 
@@ -314,7 +314,7 @@
                 qmin= (int)(qmin*s->b_quant_factor+0.5);
                 qmax= (int)(qmax*s->b_quant_factor+0.5);
             }
-            if(qmin<2) qmin=2;
+            if(qmin<1) qmin=1;
             if(qmax>31) qmax=31;
             if(qmax<=qmin) qmax= qmin;
             
@@ -386,7 +386,7 @@
         qmin= (int)(qmin*s->b_quant_factor+0.5);
         qmax= (int)(qmax*s->b_quant_factor+0.5);
     }
-    if(qmin<2) qmin=2;
+    if(qmin<1) qmin=1;
     if(qmax>31) qmax=31;
     if(qmax<=qmin) qmax= qmin;