[FFmpeg-cvslog] alsdec: make return checking for read_*_block_data() consistent

Michael Niedermayer git at videolan.org
Thu Dec 13 14:06:20 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 13 03:04:49 2012 +0100| [0213d5ad86d7ec26363b10895a96a3701c4e7fa8] | committer: Michael Niedermayer

alsdec: make return checking for read_*_block_data() consistent

Reviewed-by: Thilo Borgmann <thilo.borgmann at googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0213d5ad86d7ec26363b10895a96a3701c4e7fa8
---

 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)



More information about the ffmpeg-cvslog mailing list