From patchwork Tue Nov 10 10:58:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 23574 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 B393644B3E8 for ; Tue, 10 Nov 2020 13:15:52 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 62D5968C082; Tue, 10 Nov 2020 12:59:40 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0855268BE69 for ; Tue, 10 Nov 2020 12:59:31 +0200 (EET) Received: by mail-wm1-f66.google.com with SMTP id p22so2552775wmg.3 for ; Tue, 10 Nov 2020 02:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=NUWunh/Vuw8QnyHgizMGWl8l5Q7fVLNKXS/IPJyWBrw=; b=gButSqZbK8/jGFUVWVwZ5rdRSe04CCcJqf9FOdhGMCvYl+jGscuRpOtHkhN6peRt/T xo5VzUMnSOpFJpW5hRHkkrb0IKxIaOl2c4frjKK6fBYn26wNSFP0mqYI539pat5xd8WM vaFoPH15VcFfDR6RxNAm3yLpl2XYZol6Tbx6DGjlu9wAzSSJnDKdGe4TYKXGYxBbbvUt OKPBVoBxHJr40S5T+5GiyOtPsDi665LPiy06281W7lSyVqsoUvg17j/qRzJUaKZ8qrJG MCg9p08m5OAR7m3Tk7uhLCk1M1GhFqLZxJyUX/RZ4gce/z3MRMICQo7IP9gv3ngem/nz Y0MQ== 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:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=NUWunh/Vuw8QnyHgizMGWl8l5Q7fVLNKXS/IPJyWBrw=; b=lZXBGADBkqXFTLsNNoWvCaJaM7t/o9gW/gU3EhfCkzfkya4zuaPnABC8iubdNc+NSz G3dYwjmOh4mWKUxefIiOnFPAQThxVhNr/kk26Qc2ZDMtzeMo9pfBxfYiZOwpsjs6ykiE f4dTQ0IQXWRYTb/y6wjAAKsGhK1oIdI2/+YQbfEogK/kFUT6nr/CPFA68W+KunzRl+4E EAjWoT0hdyN6n7A+Dcqthc7/YtXflEbmlXB87a+RqZMrgm+9ArIAkoM40z+Ez3oWLWx7 KNue+de1K+XhE6wTL0L1pML1pFW7EOeQkn1pN3ksGLE+l9wVZnPery9GM/S3/G9bsaaf rS7Q== X-Gm-Message-State: AOAM532QppCVkC2bvW5nCVhIFxV3AuuAisJKkOYTSGuenL3b0CXaCK+L IM2jitinShAMwuHj41pJJIdpzf8Lsus= X-Google-Smtp-Source: ABdhPJwgZa01aH9vF2DJ6uWnMXBHnCsH+rJYB3T9qcFQsRINdxnO4hxbrpmy/LF3TI9/FR28LAVmZg== X-Received: by 2002:a1c:9d94:: with SMTP id g142mr4263244wme.66.1605005971348; Tue, 10 Nov 2020 02:59:31 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id o197sm2561308wme.17.2020.11.10.02.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 02:59:30 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 10 Nov 2020 11:58:30 +0100 Message-Id: <20201110105836.321916-17-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110104851.321029-1-andreas.rheinhardt@gmail.com> References: <20201110104851.321029-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 108/114] avcodec/hqx: Don't check for errors for complete VLCs 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/hqx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hqx.c b/libavcodec/hqx.c index 44c6c1883c..aa4ff22a8f 100644 --- a/libavcodec/hqx.c +++ b/libavcodec/hqx.c @@ -122,8 +122,6 @@ static int decode_block(GetBitContext *gb, VLC *vlc, memset(block, 0, 64 * sizeof(*block)); dc = get_vlc2(gb, vlc->table, HQX_DC_VLC_BITS, 2); - if (dc < 0) - return AVERROR_INVALIDDATA; *last_dc += dc; block[0] = sign_extend(*last_dc << (12 - dcb), 12);