[FFmpeg-cvslog] avcodec/wavpack: Remove always-false check

Andreas Rheinhardt git at videolan.org
Fri Apr 5 18:47:42 EEST 2024


ffmpeg | branch: release/7.0 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Mar 24 16:43:42 2024 +0100| [265de29acb15f957c629b1176ca4644fbd61b870] | committer: Andreas Rheinhardt

avcodec/wavpack: Remove always-false check

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit d307aca184a15be78236889c226f2699f40a1948)

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

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

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index a81049b18b..505bd3c96a 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -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));



More information about the ffmpeg-cvslog mailing list