[FFmpeg-cvslog] wavpack: remove a useless check.

Anton Khirnov git at videolan.org
Tue May 28 11:27:58 CEST 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun May 26 10:39:55 2013 +0200| [1d177200ce1ffd8902729e3a4d647b04fc4b35f8] | committer: Anton Khirnov

wavpack: remove a useless check.

Number of samples in the first block is checked to be strictly positive
earlier in wavpack_decode_frame() and number of samples in all the other
blocks is checked to be equal to the first one.

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

 libavcodec/wavpack.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index fa3682b..2afc1ed 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -797,11 +797,6 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
                    "a sequence: %d and %d\n", wc->samples, s->samples);
             return AVERROR_INVALIDDATA;
         }
-
-        if (!s->samples) {
-            *got_frame_ptr = 0;
-            return 0;
-        }
     } else {
         s->samples = wc->samples;
     }



More information about the ffmpeg-cvslog mailing list