changeset 949:693a0797398f libavcodec

warnings patch by (bubu <bubu at bubu dot net>)
author michaelni
date Wed, 01 Jan 2003 15:10:45 +0000
parents 371bc36a9c5c
children d4d714493faa
files dv.c i386/mpegvideo_mmx.c mjpeg.c ratecontrol.c
diffstat 4 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Wed Jan 01 14:36:20 2003 +0000
+++ b/dv.c	Wed Jan 01 15:10:45 2003 +0000
@@ -497,7 +497,6 @@
 {
     DVVideoDecodeContext *s = avctx->priv_data;
     int sct, dsf, apt, ds, nb_dif_segs, vs, width, height, i, packet_size;
-    unsigned size;
     UINT8 *buf_ptr;
     const UINT16 *mb_pos_ptr;
     
--- a/i386/mpegvideo_mmx.c	Wed Jan 01 14:36:20 2003 +0000
+++ b/i386/mpegvideo_mmx.c	Wed Jan 01 15:10:45 2003 +0000
@@ -529,7 +529,6 @@
 void MPV_common_init_mmx(MpegEncContext *s)
 {
     if (mm_flags & MM_MMX) {
-        int i;
         const int dct_algo = s->avctx->dct_algo;
         const int idct_algo= s->avctx->idct_algo;
         
--- a/mjpeg.c	Wed Jan 01 14:36:20 2003 +0000
+++ b/mjpeg.c	Wed Jan 01 15:10:45 2003 +0000
@@ -1182,8 +1182,9 @@
 	    get_bits(&s->gb, 8), get_bits(&s->gb, 8));
 	if (get_bits(&s->gb, 8) == 0)
 	{
-	    int x_density = get_bits(&s->gb, 16);
-	    int y_density = get_bits(&s->gb, 16);
+	    int x_density, y_density; 
+	    x_density = get_bits(&s->gb, 16);
+	    y_density = get_bits(&s->gb, 16);
 
 	    dprintf("x/y density: %d (%f), %d (%f)\n", x_density,
 		(float)x_density, y_density, (float)y_density);
--- a/ratecontrol.c	Wed Jan 01 14:36:20 2003 +0000
+++ b/ratecontrol.c	Wed Jan 01 15:10:45 2003 +0000
@@ -446,11 +446,13 @@
      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 @@
     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;