changeset 620:a5aa53b6e648 libavcodec

warning patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)
author michaelni
date Wed, 28 Aug 2002 08:15:30 +0000
parents 2be2cc8fd0a1
children 980b661a494a
files i386/mpegvideo_mmx.c motion_est.c mpeg12.c ratecontrol.c
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/i386/mpegvideo_mmx.c	Tue Aug 27 16:28:19 2002 +0000
+++ b/i386/mpegvideo_mmx.c	Wed Aug 28 08:15:30 2002 +0000
@@ -195,7 +195,7 @@
     const UINT16 *quant_matrix;
     
     if(s->alternate_scan) nCoeffs= 64;
-    else nCoeffs= nCoeffs= zigzag_end[ s->block_last_index[n] ];
+    else nCoeffs= zigzag_end[ s->block_last_index[n] ];
 
     if (s->mb_intra) {
         int block0;
@@ -321,7 +321,7 @@
     const UINT16 *quant_matrix;
     
     if(s->alternate_scan) nCoeffs= 64;
-    else nCoeffs= nCoeffs= zigzag_end[ s->block_last_index[n] ];
+    else nCoeffs= zigzag_end[ s->block_last_index[n] ];
 
     if (s->mb_intra) {
         int block0;
--- a/motion_est.c	Tue Aug 27 16:28:19 2002 +0000
+++ b/motion_est.c	Wed Aug 28 08:15:30 2002 +0000
@@ -1399,7 +1399,7 @@
     int mx, my, mx2, my2;
     uint8_t *ref_picture= s->me_scratchpad - (mb_x - 1 + (mb_y - 1)*s->linesize)*16;
     int16_t (*mv_table)[2]= s->b_direct_mv_table;
-    uint16_t *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; // f_code of the prev frame
+/*    uint16_t *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; */ // f_code of the prev frame
 
     /* thanks to iso-mpeg the rounding is different for the zero vector, so we need to handle that ... */
     motion_fx= (motion_px*time_pb)/time_pp;
--- a/mpeg12.c	Tue Aug 27 16:28:19 2002 +0000
+++ b/mpeg12.c	Wed Aug 28 08:15:30 2002 +0000
@@ -62,7 +62,7 @@
 
 static void init_2d_vlc_rl(RLTable *rl)
 {
-    int i, q;
+    int i;
     
     init_vlc(&rl->vlc, TEX_VLC_BITS, rl->n + 2, 
              &rl->table_vlc[0][1], 4, 2,
--- a/ratecontrol.c	Tue Aug 27 16:28:19 2002 +0000
+++ b/ratecontrol.c	Wed Aug 28 08:15:30 2002 +0000
@@ -279,7 +279,7 @@
         "avgTex",
         NULL
     };
-    double (*func1[])(void *, double)={
+    static double (*func1[])(void *, double)={
         bits2qp,
         qp2bits,
         NULL