From patchwork Fri Nov 20 07:33:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 23899 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 D18E4449F1B for ; Fri, 20 Nov 2020 09:53:26 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 13CA168BDB2; Fri, 20 Nov 2020 09:35:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E63FB68BD6A for ; Fri, 20 Nov 2020 09:34:53 +0200 (EET) Received: by mail-ej1-f68.google.com with SMTP id k27so11482756ejs.10 for ; Thu, 19 Nov 2020 23:34:53 -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=JgKFA0xF7WAmrcmdwFSTSz7+n282KkiF/n31i5DfQ44=; b=hkibbUIdCzkxSkkxyWPdKgKdaE0QR8pRawCZkJuniG7TfQt/eebWovIL8BGz2NcChy u5PIr5JP0Gyb4kfFL5av4bbMtJWw1LehcUAYVUGJgGBX5IzvZ+/YCkY55duMthm53jtp NRBPMujKezo37F7cqLkaL+vMbxmP7650rvEZOsnZyxOVGDzDD3kB8OVFeaBLlvq38Uyk OrL+o92JD+Ig5Bdhwmo+OUVtUOfNpTQbj9QOMHg/mDX13aBGUZtVYezzvg7BZ5ljuSP8 xrxL2h6bn60QG5WW9oSHW6sKyjAdXzr7hOTe509rSXnjBWwKZZeEawQndh8V9Pd9RLu7 32dQ== 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=JgKFA0xF7WAmrcmdwFSTSz7+n282KkiF/n31i5DfQ44=; b=SqY/0CIdJdM92cEFQHgeTxRtBoDBLWnKLRd7eh1TwJ7ajb7edhxqRVaswDh12P+W1V RQSEhrs+DbnJ6ePsnmobR8tFbGZYYunu8lXHyc260d9Fvgk8Cp35r7Kf57eZtc1ymu1/ BJdWBa1kUIeoQ1B/GrHxKI8WdUEShDpsceNnfIUfPTQez0jQLyqG8ULbVdhcBQ1um+Lr VuM7suT2q8qpxaPvrORWBXOJQofBXGqQ+H3Z9kuRVss85qbSRS2VMJ10Po/22vxQDmqK 9DrT4/5MHMPAKZyxLtVfHIBVfln/tPM8Gqf4AbeAVr8F0qK1+tqtLeE6Dh1M3nqLsK6Y Voqw== X-Gm-Message-State: AOAM532NpHkG2qWXjmNMHi/T5GRZ20Dw2XXW4SWSGgw4A30SWzxHemKD dJNDXjwK202kXZFE+kTvmclExDVwM2fGmg== X-Google-Smtp-Source: ABdhPJxyNhT4kmpv0RRiAJ0Z6Z0IgABQg3aGcIYyHlJz1YSeAaeVtiKB05Er341nFB8cgsG0Y6wl7A== X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr32237806ejn.424.1605857693147; Thu, 19 Nov 2020 23:34:53 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id i13sm769110ejv.84.2020.11.19.23.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 23:34:52 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 20 Nov 2020 08:33:13 +0100 Message-Id: <20201120073327.820745-49-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120072116.818090-1-andreas.rheinhardt@gmail.com> References: <20201120072116.818090-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 148/162] avcodec/mv30: 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/mv30.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/mv30.c b/libavcodec/mv30.c index 9f28199478..5bfe4b0614 100644 --- a/libavcodec/mv30.c +++ b/libavcodec/mv30.c @@ -379,9 +379,6 @@ static int decode_coeffs(GetBitContext *gb, int16_t *coeffs, int nb_codes) for (int i = 0; i < nb_codes;) { int value = get_vlc2(gb, cbp_tab.table, cbp_tab.bits, 1); - if (value < 0) - return AVERROR_INVALIDDATA; - if (value > 0) { int x = get_bits(gb, value);