changeset 686:83d2c9d50d7d libavcodec

fixing i_quant_factor, this should finally fix the bitrate bug with ffserver hopefully
author michaelni
date Thu, 19 Sep 2002 20:22:39 +0000
parents 44a1dab0205c
children 9abb13c21fbe
files avcodec.h utils.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Thu Sep 19 18:24:52 2002 +0000
+++ b/avcodec.h	Thu Sep 19 20:22:39 2002 +0000
@@ -430,6 +430,8 @@
     
     /**
      * qscale offset between ip and b frames
+     * if > 0 then the last p frame quantizer will be used (q= lastp_q*factor+offset)
+     * if < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset)
      * encoding: set by user.
      * decoding: unused
      */
@@ -589,6 +591,8 @@
     
     /**
      * qscale offset between p and i frames
+     * if > 0 then the last p frame quantizer will be used (q= lastp_q*factor+offset)
+     * if < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset)
      * encoding: set by user.
      * decoding: unused
      */
--- a/utils.c	Thu Sep 19 18:24:52 2002 +0000
+++ b/utils.c	Thu Sep 19 20:22:39 2002 +0000
@@ -59,7 +59,7 @@
     s->max_qdiff= 3;
     s->b_quant_factor=1.25;
     s->b_quant_offset=1.25;
-    s->i_quant_factor=0.8;
+    s->i_quant_factor=-0.8;
     s->i_quant_offset=0.0;
 }