Commit 00e3717b authored by foo86's avatar foo86 Committed by Michael Niedermayer

avcodec/dca: simplify condition

Reviewed-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 89813487
......@@ -460,19 +460,14 @@ static int chs_parse_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band, int s
// Unpack Rice coding flag
// 0 - linear code, 1 - Rice code
c->rice_code_flag[i] = get_bits1(&s->gb);
if (!c->seg_common && c->rice_code_flag[i]) {
// Unpack Hybrid Rice coding flag
// 0 - Rice code, 1 - Hybrid Rice code
if (get_bits1(&s->gb))
// Unpack binary code length for isolated samples
c->bitalloc_hybrid_linear[i] = get_bits(&s->gb, c->nabits) + 1;
else
// 0 indicates no Hybrid Rice coding
c->bitalloc_hybrid_linear[i] = 0;
} else {
// Unpack Hybrid Rice coding flag
// 0 - Rice code, 1 - Hybrid Rice code
if (!c->seg_common && c->rice_code_flag[i] && get_bits1(&s->gb))
// Unpack binary code length for isolated samples
c->bitalloc_hybrid_linear[i] = get_bits(&s->gb, c->nabits) + 1;
else
// 0 indicates no Hybrid Rice coding
c->bitalloc_hybrid_linear[i] = 0;
}
}
// Unpack coding parameters
......
Markdown is supported
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