mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/dca: simplify condition
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8981348749
commit
00e3717b4a
@ -460,19 +460,14 @@ static int chs_parse_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band, int s
|
|||||||
// Unpack Rice coding flag
|
// Unpack Rice coding flag
|
||||||
// 0 - linear code, 1 - Rice code
|
// 0 - linear code, 1 - Rice code
|
||||||
c->rice_code_flag[i] = get_bits1(&s->gb);
|
c->rice_code_flag[i] = get_bits1(&s->gb);
|
||||||
if (!c->seg_common && c->rice_code_flag[i]) {
|
// Unpack Hybrid Rice coding flag
|
||||||
// Unpack Hybrid Rice coding flag
|
// 0 - Rice code, 1 - Hybrid Rice code
|
||||||
// 0 - Rice code, 1 - Hybrid Rice code
|
if (!c->seg_common && c->rice_code_flag[i] && get_bits1(&s->gb))
|
||||||
if (get_bits1(&s->gb))
|
// Unpack binary code length for isolated samples
|
||||||
// Unpack binary code length for isolated samples
|
c->bitalloc_hybrid_linear[i] = get_bits(&s->gb, c->nabits) + 1;
|
||||||
c->bitalloc_hybrid_linear[i] = get_bits(&s->gb, c->nabits) + 1;
|
else
|
||||||
else
|
|
||||||
// 0 indicates no Hybrid Rice coding
|
|
||||||
c->bitalloc_hybrid_linear[i] = 0;
|
|
||||||
} else {
|
|
||||||
// 0 indicates no Hybrid Rice coding
|
// 0 indicates no Hybrid Rice coding
|
||||||
c->bitalloc_hybrid_linear[i] = 0;
|
c->bitalloc_hybrid_linear[i] = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unpack coding parameters
|
// Unpack coding parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user