From patchwork Mon Oct 26 10:11:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 23227 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 3A20D44A374 for ; Mon, 26 Oct 2020 12:12:30 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 17EA668AC37; Mon, 26 Oct 2020 12:12:30 +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 4D88268A8B9 for ; Mon, 26 Oct 2020 12:12:24 +0200 (EET) Received: by mail-wr1-f66.google.com with SMTP id e17so11698441wru.12 for ; Mon, 26 Oct 2020 03:12:24 -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:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=PGsFaqAJfYMoqf59w2kaB0ide6YwBwE7Ulo4czyi1lE=; b=e8LpVaXX42RbF9cIUW3yf7bj/iqa+0AfUfXMqumVPz2TLv2+LXrTxvbdr61VRbU09q CUWWRyVN5EroUexxJn4oJ7NkDCeQ9c7Bgt0deEiBoTqW4oG6u1VRRzImBSjr+ZZ4VLex 5m9A7a7WjRh235VxEyTEBu4JTvgh1KqhudF5FbLifa/QDwspc0NxOPxEcXAtDZwDtUYy F9LhDQ3eyCOEe5mJZDj8Xs/S/Hjl1PrVi36OGUJaOmqAmamMJ54JBui01ILD9jDoL+cP 8kq9o2bidygTpMdD2Se2/Cd2frPuL42WLvNQAdlboBwmrS0d/MgFYrzA4VW38IapdD+2 /esQ== 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=PGsFaqAJfYMoqf59w2kaB0ide6YwBwE7Ulo4czyi1lE=; b=dm8Ac9yTPZgVvwseuVWA/thqbMbHrxrK7Kwzqkkj4+7rF7XKflQS1TVDQBAlw6P/7U e+5DhR1vkYOz1zhWlR66ddMY9NtcCmKmDNUm061mijtBmHFS/n0cO4l8d8/n9wx44dq+ kTF/lJEUAAUBbLVVN0HTaUtTvjT/bjaxI3ADE+3GRTPxTgVJ1O/4F5pMoFJQb/G14dpW 1pyaRX50t3uHea7/VVB6KF6oNHY6qeEPDRXL9d6lpMSZZzp4owZEDoUzw0SsVJdU5M06 GhIfg9MNPQK6mCzY1Utuu32qpXW9vq+MteQJvqEkIof2uXo5ArvU+XOvTr75cpjjQ0hb sSYw== X-Gm-Message-State: AOAM532C9ZvW68KRmxhcPGAU5cSy82TS3g5jYbg5DKeCHhyBrQ1IeBDS 76RK9xczpw/nJ9IUgM5a9/zSzNrpMjA= X-Google-Smtp-Source: ABdhPJwYJaC1pX//fgQvP0rb1LiJdNO2x3Jy+9u2cJ2j5kviokxCgqGFdJmP4+9thhOfcIC/9XidyQ== X-Received: by 2002:adf:92a1:: with SMTP id 30mr17009002wrn.269.1603707143577; Mon, 26 Oct 2020 03:12:23 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id n83sm21186337wma.39.2020.10.26.03.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 03:12:23 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Oct 2020 11:11:49 +0100 Message-Id: <20201026101150.425151-2-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026101150.425151-1-andreas.rheinhardt@gmail.com> References: <20201026101150.425151-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] avcodec/vp3: 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/vp3.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 51be4ebf05..c4ad43a299 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -682,11 +682,6 @@ static int vp4_get_mb_count(Vp3DecodeContext *s, GetBitContext *gb) static int vp4_get_block_pattern(Vp3DecodeContext *s, GetBitContext *gb, int *next_block_pattern_table) { int v = get_vlc2(gb, s->block_pattern_vlc[*next_block_pattern_table].table, 3, 2); - if (v == -1) { - av_log(s->avctx, AV_LOG_ERROR, "Invalid block pattern\n"); - *next_block_pattern_table = 0; - return 0; - } *next_block_pattern_table = vp4_block_pattern_table_selector[v]; return v + 1; }