aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-13 03:04:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-13 13:59:11 +0100
commit0213d5ad86d7ec26363b10895a96a3701c4e7fa8 (patch)
tree9e85c57cc7de1044ccfef1f7514fbc7edf7fa05f
parent79bfba14b78f126aa75a6d15cb6a5ce3c428eaf1 (diff)
downloadffmpeg-0213d5ad86d7ec26363b10895a96a3701c4e7fa8.tar.gz
alsdec: make return checking for read_*_block_data() consistent
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 73c6660a55..e9774f0301 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -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)