summaryrefslogtreecommitdiff
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-24 12:36:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-24 12:36:52 +0200
commit800637709c8253862f9cb19f5f9be44a8873a693 (patch)
treed7f1eb046bfe2224144d97e3ab51d323e707323e /libavcodec/alsdec.c
parent7dec8512be12675e84213c744c1aa511bed4d057 (diff)
alsdec: minor simplification in read_block()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c3
1 files changed, 1 insertions, 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;