changeset 1419:a7a9df478e46 libavcodec

removed unused variable
author bellard
date Sun, 24 Aug 2003 22:28:41 +0000
parents e6e43c68e19c
children ff0220970711
files h263.c mdec.c motion_est.c motion_est_template.c vcr1.c
diffstat 5 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sun Aug 24 22:21:06 2003 +0000
+++ b/h263.c	Sun Aug 24 22:28:41 2003 +0000
@@ -563,7 +563,6 @@
 		    int motion_x, int motion_y)
 {
     int cbpc, cbpy, pred_x, pred_y;
-    int bits;
     PutBitContext * const pb2    = s->data_partitioning                         ? &s->pb2    : &s->pb;
     PutBitContext * const tex_pb = s->data_partitioning && s->pict_type!=B_TYPE ? &s->tex_pb : &s->pb;
     PutBitContext * const dc_pb  = s->data_partitioning && s->pict_type!=I_TYPE ? &s->pb2    : &s->pb;
--- a/mdec.c	Sun Aug 24 22:21:06 2003 +0000
+++ b/mdec.c	Sun Aug 24 22:28:41 2003 +0000
@@ -249,7 +249,6 @@
 static int decode_init(AVCodecContext *avctx){
     MDECContext * const a = avctx->priv_data;
     AVFrame *p= (AVFrame*)&a->picture;
-    int i;
  
     mdec_common_init(avctx);
     init_vlcs();
--- a/motion_est.c	Sun Aug 24 22:21:06 2003 +0000
+++ b/motion_est.c	Sun Aug 24 22:28:41 2003 +0000
@@ -393,6 +393,7 @@
     }
 }
       
+#if 0
 static int pix_dev(uint8_t * pix, int line_size, int mean)
 {
     int s, i, j;
@@ -414,6 +415,7 @@
     }
     return s;
 }
+#endif
 
 static inline void no_motion_search(MpegEncContext * s,
 				    int *mx_ptr, int *my_ptr)
--- a/motion_est_template.c	Sun Aug 24 22:21:06 2003 +0000
+++ b/motion_est_template.c	Sun Aug 24 22:28:41 2003 +0000
@@ -186,7 +186,9 @@
 #if 1
         int key;
         int map_generation= s->me.map_generation;
+#ifndef NDEBUG
         uint32_t *map= s->me.map;
+#endif
         key= ((my-1)<<ME_MAP_MV_BITS) + (mx) + map_generation;
         assert(map[(index-(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)] == key);
         key= ((my+1)<<ME_MAP_MV_BITS) + (mx) + map_generation;
--- a/vcr1.c	Sun Aug 24 22:21:06 2003 +0000
+++ b/vcr1.c	Sun Aug 24 22:28:41 2003 +0000
@@ -150,9 +150,6 @@
 }
 
 static int decode_init(AVCodecContext *avctx){
-    VCR1Context * const a = avctx->priv_data;
-    AVFrame *p= (AVFrame*)&a->picture;
-    int i;
  
     common_init(avctx);
     
@@ -162,8 +159,6 @@
 }
 
 static int encode_init(AVCodecContext *avctx){
-    VCR1Context * const a = avctx->priv_data;
-    int i;
  
     common_init(avctx);
     
@@ -171,7 +166,6 @@
 }
 
 static int decode_end(AVCodecContext *avctx){
-    VCR1Context * const a = avctx->priv_data;
 
     avcodec_default_free_buffers(avctx);