From 800637709c8253862f9cb19f5f9be44a8873a693 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 24 Jul 2013 12:36:52 +0200 Subject: [PATCH] alsdec: minor simplification in read_block() Signed-off-by: Michael Niedermayer --- libavcodec/alsdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 038b1a870d..53856a1035 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -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;