alsdec: make return checking for read_*_block_data() consistent
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
79bfba14b7
commit
0213d5ad86
@ -974,7 +974,7 @@ static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
|
|||||||
*bd->shift_lsbs = 0;
|
*bd->shift_lsbs = 0;
|
||||||
// read block type flag and read the samples accordingly
|
// read block type flag and read the samples accordingly
|
||||||
if (get_bits1(gb)) {
|
if (get_bits1(gb)) {
|
||||||
if (read_var_block_data(ctx, bd))
|
if (read_var_block_data(ctx, bd) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
if (read_const_block_data(ctx, bd) < 0)
|
if (read_const_block_data(ctx, bd) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user