From 0213d5ad86d7ec26363b10895a96a3701c4e7fa8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 13 Dec 2012 03:04:49 +0100 Subject: [PATCH] alsdec: make return checking for read_*_block_data() consistent Reviewed-by: Thilo Borgmann Signed-off-by: Michael Niedermayer --- libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 73c6660a55..e9774f0301 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -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) -- 2.11.0