Commit 9dfccce4 authored by Loren Merritt's avatar Loren Merritt
Browse files

shut up valgrind warnings in trellis

parent 2e1db1f6
...@@ -609,11 +609,13 @@ static ALWAYS_INLINE int quant_trellis_cabac( x264_t *h, int16_t *dct, ...@@ -609,11 +609,13 @@ static ALWAYS_INLINE int quant_trellis_cabac( x264_t *h, int16_t *dct,
} }
j = bnode->level_idx; j = bnode->level_idx;
for( i = b_ac; i < i_coefs; i++ ) for( i = b_ac; j; i++ )
{ {
dct[zigzag[i]] = level_tree[j].abs_level * signs[i]; dct[zigzag[i]] = level_tree[j].abs_level * signs[i];
j = level_tree[j].next; j = level_tree[j].next;
} }
for( ; i < i_coefs; i++ )
dct[zigzag[i]] = 0;
return 1; return 1;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment