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:
Michael Niedermayer 2012-12-13 03:04:49 +01:00
parent 79bfba14b7
commit 0213d5ad86

View File

@ -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)