1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

smacker: remove dead store

This commit is contained in:
Alex Converse 2012-01-25 16:22:05 -08:00
parent dac56d9ce0
commit 90c0c83e14

View File

@ -334,16 +334,14 @@ static av_always_inline void last_reset(int *recode, int *last) {
/* get code and update history */ /* get code and update history */
static av_always_inline int smk_get_code(GetBitContext *gb, int *recode, int *last) { static av_always_inline int smk_get_code(GetBitContext *gb, int *recode, int *last) {
register int *table = recode; register int *table = recode;
int v, b; int v;
b = get_bits_count(gb);
while(*table & SMK_NODE) { while(*table & SMK_NODE) {
if(get_bits1(gb)) if(get_bits1(gb))
table += (*table) & (~SMK_NODE); table += (*table) & (~SMK_NODE);
table++; table++;
} }
v = *table; v = *table;
b = get_bits_count(gb) - b;
if(v != recode[last[0]]) { if(v != recode[last[0]]) {
recode[last[2]] = recode[last[1]]; recode[last[2]] = recode[last[1]];