diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-05-15 19:55:09 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-15 23:58:04 +0200 |
commit | 9cacdabd1c8cd257a942d8289349c37d992989b7 (patch) | |
tree | 56ac64e557597ab414a966972b067ac43a5948e5 /libavcodec/jpeglsdec.c | |
parent | 004b81c465d5bad63e72cdaa923429696e899caa (diff) | |
download | ffmpeg-9cacdabd1c8cd257a942d8289349c37d992989b7.tar.gz |
jpegls: cosmetics: Drop some unnecessary parentheses
Diffstat (limited to 'libavcodec/jpeglsdec.c')
-rw-r--r-- | libavcodec/jpeglsdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index 8a558476c3..5f01631ad2 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -98,7 +98,7 @@ static inline int ls_get_code_regular(GetBitContext *gb, JLSState *state, int Q) /* decode mapped error */ if(ret & 1) - ret = -((ret + 1) >> 1); + ret = -(ret + 1 >> 1); else ret >>= 1; @@ -136,7 +136,7 @@ static inline int ls_get_code_runterm(GetBitContext *gb, JLSState *state, int RI ret += RItype + map; if(ret & 1){ - ret = map - ((ret + 1) >> 1); + ret = map - (ret + 1 >> 1); state->B[Q]++; } else { ret = ret >> 1; @@ -186,7 +186,7 @@ static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s, void * x += stride; } /* if EOL reached, we stop decoding */ - if(r != (1 << ff_log2_run[state->run_index[comp]])) + if (r != 1 << ff_log2_run[state->run_index[comp]]) return; if(state->run_index[comp] < 31) state->run_index[comp]++; |