alsdec: minor simplification in read_block()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Jul 2013 10:36:52 +0000 (12:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Jul 2013 10:36:52 +0000 (12:36 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alsdec.c

index 038b1a8..53856a1 100644 (file)
@@ -983,8 +983,7 @@ static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
     if (get_bits1(gb)) {
         ret = read_var_block_data(ctx, bd);
     } else {
-        if ((ret = read_const_block_data(ctx, bd)) < 0)
-            return ret;
+        ret = read_const_block_data(ctx, bd);
     }
 
     return ret;