diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-05-26 10:39:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-28 08:03:24 +0200 |
commit | 1d177200ce1ffd8902729e3a4d647b04fc4b35f8 (patch) | |
tree | b29a5cbd34ea244478697cc5cb1e014a5f8c1fbe | |
parent | 0f3a0b24dd6f595feaa4526e52ffa7d05c3d7840 (diff) | |
download | ffmpeg-1d177200ce1ffd8902729e3a4d647b04fc4b35f8.tar.gz |
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.
-rw-r--r-- | libavcodec/wavpack.c | 5 |
1 files changed, 0 insertions, 5 deletions
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; } |