[FFmpeg-cvslog] alacdec: remove unneeded numsamples checks

Justin Ruggles git at videolan.org
Thu Oct 27 01:46:41 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Oct  5 20:17:32 2011 -0400| [dbbb9262ca0fd09f2582b11157a74c88ab7e1db5] | committer: Justin Ruggles

alacdec: remove unneeded numsamples checks

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

 libavcodec/alac.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 8e6c4f9..3772484 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -305,8 +305,6 @@ static void reconstruct_stereo_16(int32_t *buffer[MAX_CHANNELS],
                                   uint8_t interlacing_leftweight)
 {
     int i;
-    if (numsamples <= 0)
-        return;
 
     /* weighted interlacing */
     if (interlacing_leftweight) {
@@ -348,9 +346,6 @@ static void decorrelate_stereo_24(int32_t *buffer[MAX_CHANNELS],
 {
     int i;
 
-    if (numsamples <= 0)
-        return;
-
     /* weighted interlacing */
     if (interlacing_leftweight) {
         for (i = 0; i < numsamples; i++) {



More information about the ffmpeg-cvslog mailing list