changeset 11162:d9725977b699 libavcodec

h264: Remove unused variables.
author astrange
date Sat, 13 Feb 2010 21:09:38 +0000
parents 286497e7f7c5
children 8070f6a8df50
files h264.c h264.h h264_loopfilter.c
diffstat 3 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sat Feb 13 21:08:17 2010 +0000
+++ b/h264.c	Sat Feb 13 21:09:38 2010 +0000
@@ -979,8 +979,6 @@
 
 static inline void xchg_mb_border(H264Context *h, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int xchg, int simple){
     MpegEncContext * const s = &h->s;
-    int temp8, i;
-    uint64_t temp64;
     int deblock_left;
     int deblock_top;
     int mb_xy;
@@ -2165,7 +2163,7 @@
     if(h->deblocking_filter) {
         for(mb_x= 0; mb_x<s->mb_width; mb_x++){
             for(mb_y=end_mb_y - FRAME_MBAFF; mb_y<= end_mb_y; mb_y++){
-                int list, mb_xy, mb_type;
+                int mb_xy, mb_type;
                 mb_xy = h->mb_xy = mb_x + mb_y*s->mb_stride;
                 h->slice_num= h->slice_table[mb_xy];
                 mb_type= s->current_picture.mb_type[mb_xy];
--- a/h264.h	Sat Feb 13 21:08:17 2010 +0000
+++ b/h264.h	Sat Feb 13 21:09:38 2010 +0000
@@ -1136,7 +1136,6 @@
     const int mb_xy= h->mb_xy;
     int top_xy, left_xy[2];
     int top_type, left_type[2];
-    int i;
 
     top_xy     = mb_xy  - (s->mb_stride << MB_FIELD);
 
--- a/h264_loopfilter.c	Sat Feb 13 21:08:17 2010 +0000
+++ b/h264_loopfilter.c	Sat Feb 13 21:09:38 2010 +0000
@@ -514,7 +514,7 @@
                 )
                     *(uint64_t*)bS= 0x0004000400040004ULL;
             } else {
-                int i, l;
+                int i;
                 int mv_done;
 
                 if( dir && FRAME_MBAFF && IS_INTERLACED(mb_type ^ mbm_type)) {
@@ -590,7 +590,7 @@
         if( IS_INTRA(mb_type)) {
             *(uint64_t*)bS= 0x0003000300030003ULL;
         } else {
-            int i, l;
+            int i;
             int mv_done;
 
             if( edge & mask_edge ) {
@@ -657,7 +657,6 @@
     const int mvy_limit = IS_INTERLACED(mb_type) ? 2 : 4;
     int first_vertical_edge_done = 0;
     av_unused int dir;
-    int list;
 
     if (FRAME_MBAFF
             // and current and left pair do not have the same interlaced type