1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avcodec/wavpack: Remove always-false check

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit d307aca184a15be78236889c226f2699f40a1948)
This commit is contained in:
Andreas Rheinhardt 2024-03-24 16:43:42 +01:00
parent 607fca80b7
commit 265de29acb

View File

@ -1097,11 +1097,6 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
}
s = wc->fdec[block_no];
if (!s) {
av_log(avctx, AV_LOG_ERROR, "Context for block %d is not present\n",
block_no);
return AVERROR_INVALIDDATA;
}
memset(s->decorr, 0, MAX_TERMS * sizeof(Decorr));
memset(s->ch, 0, sizeof(s->ch));