[FFmpeg-devel] [PATCH 2/3] alsdec: make return checking for read_*_block_data() consistent

Michael Niedermayer michaelni at gmx.at
Thu Dec 13 03:08:08 CET 2012


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/alsdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 73c6660..e9774f0 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)
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list