aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ratecontrol.c
diff options
context:
space:
mode:
authorbubu <bubu@bubu.net>2003-01-01 15:10:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-01 15:10:45 +0000
commitccfddafbd9a775b05faeaf2f5a5ed182951419aa (patch)
tree787d7625d6b2f861a7512583effd4afc8fff3775 /libavcodec/ratecontrol.c
parent7204b806a0f62401bc66e137f475e896dc3e4dfa (diff)
downloadffmpeg-ccfddafbd9a775b05faeaf2f5a5ed182951419aa.tar.gz
warnings patch by (bubu <bubu at bubu dot net>)
Originally committed as revision 1386 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r--libavcodec/ratecontrol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 6be99cc4d0..3593c68bf6 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -446,11 +446,13 @@ static double predict_size(Predictor *p, double q, double var)
return p->coeff*var / (q*p->count);
}
+/*
static double predict_qp(Predictor *p, double size, double var)
{
//printf("coeff:%f, count:%f, var:%f, size:%f//\n", p->coeff, p->count, var, size);
return p->coeff*var / (size*p->count);
}
+*/
static void update_predictor(Predictor *p, double q, double var, double size)
{
@@ -705,7 +707,7 @@ static int init_pass2(MpegEncContext *s)
uint64_t all_available_bits= (uint64_t)(s->bit_rate*(double)rcc->num_entries/fps);
double rate_factor=0;
double step;
- int last_i_frame=-10000000;
+ //int last_i_frame=-10000000;
const int filter_size= (int)(s->qblur*4) | 1;
double expected_bits;
double *qscale, *blured_qscale;