From patchwork Tue Nov 10 10:48:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 23560 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 5C31244A917 for ; Tue, 10 Nov 2020 13:09:42 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 286EC68BF2E; Tue, 10 Nov 2020 12:50:59 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AD0A568BE4C for ; Tue, 10 Nov 2020 12:50:43 +0200 (EET) Received: by mail-wr1-f66.google.com with SMTP id o15so4305478wru.6 for ; Tue, 10 Nov 2020 02:50:43 -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=qpbFPVtSYyrdSTGKR19DRAzUt+pzDt3FwzdUXkabN1g=; b=hB9X35BJZtLj6ryFczTcZxI/UCXzoDy8HGnlwDYyTeElPscCVgkYcymAZuWpJfD1o7 aXgoekNU53nRywGDrL/aEN2cgdjIM+UDvfA44hAJZ8oUdC0ENdUxXhWlun19wuNQZd/S hz8JklxWY5JCkjf0KF441cDhoM+2HoaRmRSCG4QiFrWuvZVaKAm4LwsOuAvNaoQuh9r3 08O/owE9grt0Uk3k534uxU1wEERBQZyV8uYjRMgQxjvK1lYrMUifw0D5El3/A1yTn912 hB5NjNf7tX5+WcuZPnoEHIgQcAOoUFbBpMP1JEyshtEBy0phn3m8Jj3ax15fvHXMgNGN b3FQ== 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=qpbFPVtSYyrdSTGKR19DRAzUt+pzDt3FwzdUXkabN1g=; b=s/pjwW+lmfRlJZ1u3bOQgDCvHKZYeMadP6eseSOaWkWgsTGxkJmLtxlPN8Qu4/HdPl RQSl3nCJ9vPeN6nAg4oIwrrAwkDPI6zyf5nTotIwwgxgOyHVTrQ5dmXny6Lfc0YOpiNs bgHeuCFUkIeO4VzOlxOOqwTkLdxRJIztxvtgpS4M2UOfnmS7vtBe0tpW7l+HMaN5eCVK Nx6BnSo8E2TwTHu6vrdRKPdY9k3B96NqbHg9zeZimTL2X31F2Br2f5z1sbFgv1NXdwdV KYcuvs/6UWW1SU7DbCqYiKGLTe6ksCX5DlGDeUkqi0xaDULJR2UDrgrI4o+CKqCQ8cVg HpPQ== X-Gm-Message-State: AOAM533aXKesvAwXYtaHby2gpT7GIcECo1RVRIBXoJIhNc7nj9s4LwdD Wq+ahCmi573v0FOeug23dUYqVvxHmkg= X-Google-Smtp-Source: ABdhPJyETx/W97M5Ahei+baCiddLqW12qABCoZYJIfDE7lrj2vwrg0qH6mbJnSlIDUrGTRD9kuLGMQ== X-Received: by 2002:a05:6000:107:: with SMTP id o7mr22881281wrx.354.1605005442983; Tue, 10 Nov 2020 02:50:42 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id l24sm2572543wmi.7.2020.11.10.02.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 02:50:42 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 10 Nov 2020 11:48:22 +0100 Message-Id: <20201110104851.321029-86-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 085/114] avcodec/vc1: Don't check for errors for complete VLC 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/vc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 9eb02f88b3..305cc8c075 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -614,7 +614,7 @@ static void rotate_luts(VC1Context *v) static int read_bfraction(VC1Context *v, GetBitContext* gb) { int bfraction_lut_index = get_vlc2(gb, ff_vc1_bfraction_vlc.table, VC1_BFRACTION_VLC_BITS, 1); - if (bfraction_lut_index == 21 || bfraction_lut_index < 0) { + if (bfraction_lut_index == 21) { av_log(v->s.avctx, AV_LOG_ERROR, "bfraction invalid\n"); return AVERROR_INVALIDDATA; }