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/jpeglsenc.c | |
parent | 004b81c465d5bad63e72cdaa923429696e899caa (diff) | |
download | ffmpeg-9cacdabd1c8cd257a942d8289349c37d992989b7.tar.gz |
jpegls: cosmetics: Drop some unnecessary parentheses
Diffstat (limited to 'libavcodec/jpeglsenc.c')
-rw-r--r-- | libavcodec/jpeglsenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c index f6d88016a1..4d219cbade 100644 --- a/libavcodec/jpeglsenc.c +++ b/libavcodec/jpeglsenc.c @@ -48,7 +48,7 @@ static inline void ls_encode_regular(JLSState *state, PutBitContext *pb, int Q, if(err < 0) err += state->range; - if(err >= ((state->range + 1) >> 1)) { + if (err >= (state->range + 1 >> 1)) { err -= state->range; val = 2 * FFABS(err) - 1 - map; } else @@ -144,7 +144,7 @@ static inline void ls_encode_line(JLSState *state, PutBitContext *pb, void *last if(x >= w) return; Rb = R(last, x); - RItype = (FFABS(Ra - Rb) <= state->near); + RItype = FFABS(Ra - Rb) <= state->near; pred = RItype ? Ra : Rb; err = R(cur, x) - pred; @@ -165,7 +165,7 @@ static inline void ls_encode_line(JLSState *state, PutBitContext *pb, void *last } if(err < 0) err += state->range; - if(err >= ((state->range + 1) >> 1)) + if (err >= state->range + 1 >> 1) err -= state->range; ls_encode_runterm(state, pb, RItype, err, ff_log2_run[state->run_index[comp]]); |