From 1d177200ce1ffd8902729e3a4d647b04fc4b35f8 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 26 May 2013 10:39:55 +0200 Subject: 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. --- libavcodec/wavpack.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libavcodec/wavpack.c') diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index fa3682b6f5..2afc1edeea 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; } -- cgit v1.2.3