OSDN Git Service

wavpack: remove a useless check.
authorAnton Khirnov <anton@khirnov.net>
Sun, 26 May 2013 08:39:55 +0000 (10:39 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 28 May 2013 06:03:24 +0000 (08:03 +0200)
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

index fa3682b..2afc1ed 100644 (file)
@@ -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;
     }