[FFmpeg-cvslog] r18575 - trunk/libavcodec/h261enc.c

michael subversion
Fri Apr 17 19:56:17 CEST 2009


Author: michael
Date: Fri Apr 17 19:56:16 2009
New Revision: 18575

Log:
Remove unused variable from h261_encode_block() found by CSA.

Modified:
   trunk/libavcodec/h261enc.c

Modified: trunk/libavcodec/h261enc.c
==============================================================================
--- trunk/libavcodec/h261enc.c	Fri Apr 17 19:54:55 2009	(r18574)
+++ trunk/libavcodec/h261enc.c	Fri Apr 17 19:56:16 2009	(r18575)
@@ -256,7 +256,7 @@ void ff_h261_encode_init(MpegEncContext 
  */
 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 @@ static void h261_encode_block(H261Contex
         level = block[j];
         if (level) {
             run = i - last_non_zero - 1;
-            last = (i == last_index);
             sign = 0;
             slevel = level;
             if (level < 0) {



More information about the ffmpeg-cvslog mailing list