changeset 9470:677b6a886768 libavcodec

Remove unused variable in modify_qscale() found by CSA.
author michael
date Fri, 17 Apr 2009 15:08:00 +0000
parents 5c58923d47d2
children b9e7aaa98610
files ratecontrol.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ratecontrol.c	Fri Apr 17 15:01:58 2009 +0000
+++ b/ratecontrol.c	Fri Apr 17 15:08:00 2009 +0000
@@ -435,7 +435,6 @@
 static double modify_qscale(MpegEncContext *s, RateControlEntry *rce, double q, int frame_num){
     RateControlContext *rcc= &s->rc_context;
     int qmin, qmax;
-    double bits;
     const int pict_type= rce->new_pict_type;
     const double buffer_size= s->avctx->rc_buffer_size;
     const double fps= 1/av_q2d(s->avctx->time_base);
@@ -448,7 +447,6 @@
     if(s->avctx->rc_qmod_freq && frame_num%s->avctx->rc_qmod_freq==0 && pict_type==FF_P_TYPE)
         q*= s->avctx->rc_qmod_amp;
 
-    bits= qp2bits(rce, q);
 //printf("q:%f\n", q);
     /* buffer overflow/underflow protection */
     if(buffer_size){