projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e12701
)
Remove unused variable from h261_encode_block() found by CSA.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 17 Apr 2009 17:56:16 +0000
(17:56 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 17 Apr 2009 17:56:16 +0000
(17:56 +0000)
Originally committed as revision 18575 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h261enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/h261enc.c
b/libavcodec/h261enc.c
index
6a8565c
..
af8969e
100644
(file)
--- 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) {