# HG changeset patch # User michaelni # Date 1032466959 0 # Node ID 83d2c9d50d7dbc7b7e2e11e1338b125a8f283a14 # Parent 44a1dab0205c68c22bd3f18380229a7c79903f67 fixing i_quant_factor, this should finally fix the bitrate bug with ffserver hopefully diff -r 44a1dab0205c -r 83d2c9d50d7d avcodec.h --- 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 */ diff -r 44a1dab0205c -r 83d2c9d50d7d utils.c --- 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; }