alsdec: make return checking for read_*_block_data() consistent
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Dec 2012 02:04:49 +0000 (03:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Dec 2012 12:59:11 +0000 (13:59 +0100)
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alsdec.c

index 73c6660..e9774f0 100644 (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)