changeset 9478:b0874961f1e2 libavcodec

Remove unused variable from h261_encode_block() found by CSA.
author michael
date Fri, 17 Apr 2009 17:56:16 +0000
parents 94edfc2a9b8b
children 6e649626d0c1
files h261enc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h261enc.c	Fri Apr 17 17:54:55 2009 +0000
+++ b/h261enc.c	Fri Apr 17 17:56:16 2009 +0000
@@ -256,7 +256,7 @@
  */
 static void h261_encode_block(H261Context * h, DCTELEM * block, int n){
     MpegEncContext * const s = &h->s;
-    int level, run, last, i, j, last_index, last_non_zero, sign, slevel, code;
+    int level, run, i, j, last_index, last_non_zero, sign, slevel, code;
     RLTable *rl;
 
     rl = &h261_rl_tcoeff;
@@ -294,7 +294,6 @@
         level = block[j];
         if (level) {
             run = i - last_non_zero - 1;
-            last = (i == last_index);
             sign = 0;
             slevel = level;
             if (level < 0) {