From: Michael Niedermayer Date: Wed, 24 Jul 2013 10:36:52 +0000 (+0200) Subject: alsdec: minor simplification in read_block() X-Git-Tag: android-x86-4.4-r1~2211 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=800637709c8253862f9cb19f5f9be44a8873a693;p=android-x86%2Fexternal-ffmpeg.git alsdec: minor simplification in read_block() Signed-off-by: Michael Niedermayer --- 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;