[FFmpeg-cvslog] alsdec: minor simplification in read_block()

Michael Niedermayer git at videolan.org
Wed Jul 24 12:56:22 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 24 12:36:52 2013 +0200| [800637709c8253862f9cb19f5f9be44a8873a693] | committer: Michael Niedermayer

alsdec: minor simplification in read_block()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/alsdec.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 038b1a8..53856a1 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;



More information about the ffmpeg-cvslog mailing list