Commit 0213d5ad authored by Michael Niedermayer's avatar Michael Niedermayer

alsdec: make return checking for read_*_block_data() consistent

Reviewed-by: 's avatarThilo Borgmann <thilo.borgmann@googlemail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 79bfba14
......@@ -974,7 +974,7 @@ static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
*bd->shift_lsbs = 0;
// read block type flag and read the samples accordingly
if (get_bits1(gb)) {
if (read_var_block_data(ctx, bd))
if (read_var_block_data(ctx, bd) < 0)
return -1;
} else {
if (read_const_block_data(ctx, bd) < 0)
......
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