summaryrefslogtreecommitdiff
path: root/vp8/encoder/boolhuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'vp8/encoder/boolhuff.h')
-rw-r--r--vp8/encoder/boolhuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/boolhuff.h b/vp8/encoder/boolhuff.h
index 8ac0a2cc4..8cc61bdd4 100644
--- a/vp8/encoder/boolhuff.h
+++ b/vp8/encoder/boolhuff.h
@@ -92,7 +92,7 @@ static void vp8_encode_bool(BOOL_CODER *bc, int bit, int probability) {
}
validate_buffer(bc->buffer + bc->pos, 1, bc->buffer_end, bc->error);
- bc->buffer[bc->pos++] = (lowvalue >> (24 - offset));
+ bc->buffer[bc->pos++] = (lowvalue >> (24 - offset) & 0xff);
lowvalue <<= offset;
shift = count;