diff options
Diffstat (limited to 'apps/plugins/jpeg/jpeg_decoder.c')
-rw-r--r-- | apps/plugins/jpeg/jpeg_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/jpeg/jpeg_decoder.c b/apps/plugins/jpeg/jpeg_decoder.c index 71d50888c3..c90bff87a4 100644 --- a/apps/plugins/jpeg/jpeg_decoder.c +++ b/apps/plugins/jpeg/jpeg_decoder.c | |||
@@ -1067,12 +1067,12 @@ INLINE void check_bit_buffer(struct bitstream* pb, int nbits) | |||
1067 | 1067 | ||
1068 | INLINE int get_bits(struct bitstream* pb, int nbits) | 1068 | INLINE int get_bits(struct bitstream* pb, int nbits) |
1069 | { | 1069 | { |
1070 | return ((int) (pb->get_buffer >> (pb->bits_left -= nbits))) & ((1<<nbits)-1); | 1070 | return ((int) (pb->get_buffer >> (pb->bits_left -= nbits))) & (BIT_N(nbits)-1); |
1071 | } | 1071 | } |
1072 | 1072 | ||
1073 | INLINE int peek_bits(struct bitstream* pb, int nbits) | 1073 | INLINE int peek_bits(struct bitstream* pb, int nbits) |
1074 | { | 1074 | { |
1075 | return ((int) (pb->get_buffer >> (pb->bits_left - nbits))) & ((1<<nbits)-1); | 1075 | return ((int) (pb->get_buffer >> (pb->bits_left - nbits))) & (BIT_N(nbits)-1); |
1076 | } | 1076 | } |
1077 | 1077 | ||
1078 | INLINE void drop_bits(struct bitstream* pb, int nbits) | 1078 | INLINE void drop_bits(struct bitstream* pb, int nbits) |