diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-13 03:04:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-13 13:59:11 +0100 |
commit | 0213d5ad86d7ec26363b10895a96a3701c4e7fa8 (patch) | |
tree | 9e85c57cc7de1044ccfef1f7514fbc7edf7fa05f | |
parent | 79bfba14b78f126aa75a6d15cb6a5ce3c428eaf1 (diff) | |
download | ffmpeg-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.c | 2 |
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) |