From patchwork Thu Oct 22 18:45:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 23157 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 60AFE44997A for ; Thu, 22 Oct 2020 21:45:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 34AE36882DE; Thu, 22 Oct 2020 21:45:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 439C4688257 for ; Thu, 22 Oct 2020 21:45:51 +0300 (EEST) Received: by mail-wr1-f65.google.com with SMTP id s9so4018340wro.8 for ; Thu, 22 Oct 2020 11:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R4F/A2ngumq9oSZq2K88FDrdOW5VZtOZA6uzGb7QA2o=; b=TJKWOFTeq6pb3yyWvQh4Lzo8IdIjmeW61mwTHeoXRpyVmq1cLorDvwKfrz5PztQSUO oLHAlcoS79b83QNDiz3L0kWVCVY5zWQ+3Q6HW2zp9XIRB93DQ0l+jkAVwiSjufA57LSi 8C2Yv+yB2VkXxoxEt4le5c1w1eFQAwIeeoSilzYXno80rzum9nR+BS9ogehyMSutaUfT Rzy3FDJiGWdB+c1MzqkuBBG0yGYct66NONUXTCVAzZOORF6okymxMim6NBqVW5m6yDyt 63CDUqI4lG4jk3g3iU5SA+V+Dz94LtoY0KG+vbsfYxYFObgt2o/e4vDzKF/zOkJd4GQ1 ukYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R4F/A2ngumq9oSZq2K88FDrdOW5VZtOZA6uzGb7QA2o=; b=DqeDKO6zSha9bpmXraQpF+L6zrwmCybADfL02SLIM9j704Ax44LocuV92MwOiXrNxm /jV4JJzf8zRTK+cLBC9FzygHbolWvHgRBU2Aa3Up+scmXMk4CIn3kLAsiDlLCcAJkFMY OjwbT9QzbRFuQ7Z+E7b4fQxO9QeqfFEX5+1IAuZY1lguEmjUP9hf4vZSV98oM5giRKyx 32XEHuPzy1+FnzyY7a/3qHJNvb36NgXgjToO0qg4Jonj+c+0DcXHofO5rBX8X+oP4xCy YEjrDsWpd+zscp8LPeAFBo00Abh3HJkWKirbBYANXiFsXb3ivosQQwt8RmWaAhISTVIP 3PIw== X-Gm-Message-State: AOAM533Ahqz86p4WvMk3+0ed5SLyCWgoTobUaVxGl9ykYAPShbl5jlKo 0FON3c8QRuWXPyPJhqubMVu4WKCQHFY= X-Google-Smtp-Source: ABdhPJzLyYGxtvAjA8nXPAzNWem5kP+bJoiYyhrdIoLG8w9LH4dRHFgBh7Wiq76fgs+uHfUKzfHNAA== X-Received: by 2002:a5d:4cd1:: with SMTP id c17mr4184917wrt.109.1603392350509; Thu, 22 Oct 2020 11:45:50 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id e13sm5215951wrt.57.2020.10.22.11.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 11:45:49 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 22 Oct 2020 20:45:43 +0200 Message-Id: <20201022184543.667852-1-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/wmadec: Don't check for errors for complete VLC tables X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavcodec/wmadec.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 07fd960f7f..8504d8d6c4 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -345,10 +345,6 @@ static int decode_exp_vlc(WMACodecContext *s, int ch) while (q < q_end) { code = get_vlc2(&s->gb, s->exp_vlc.table, EXPVLCBITS, EXPMAX); - if (code < 0) { - av_log(s->avctx, AV_LOG_ERROR, "Exponent vlc invalid\n"); - return -1; - } /* NOTE: this offset is the same as MPEG-4 AAC! */ last_exp += code - 60; if ((unsigned) last_exp + 60 >= FF_ARRAY_ELEMS(pow_tab)) { @@ -560,11 +556,6 @@ static int wma_decode_block(WMACodecContext *s) } else { code = get_vlc2(&s->gb, s->hgain_vlc.table, HGAINVLCBITS, HGAINMAX); - if (code < 0) { - av_log(s->avctx, AV_LOG_ERROR, - "hgain vlc invalid\n"); - return -1; - } val += code - 18; } s->high_band_values[ch][i] = val;