summaryrefslogtreecommitdiff
path: root/libavcodec/h261enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-17 17:56:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-04-17 17:56:16 +0000
commit38a7695f6759bcc742222833d0b77602473147cd (patch)
tree2a07b95bcdca97d755218dfa728f8aa88db11796 /libavcodec/h261enc.c
parent5e12701c5c881722f28379a15a60d5a20698b10f (diff)
Remove unused variable from h261_encode_block() found by CSA.
Originally committed as revision 18575 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h261enc.c')
-rw-r--r--libavcodec/h261enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c
index 6a8565c509..af8969e031 100644
--- a/libavcodec/h261enc.c
+++ b/libavcodec/h261enc.c
@@ -256,7 +256,7 @@ void ff_h261_encode_init(MpegEncContext *s){
*/
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(H261Context * h, DCTELEM * block, int n){
level = block[j];
if (level) {
run = i - last_non_zero - 1;
- last = (i == last_index);
sign = 0;
slevel = level;
if (level < 0) {