From patchwork Sun Nov 8 20:20:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Gil Peyrot X-Patchwork-Id: 321592 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B778EC388F7 for ; Mon, 9 Nov 2020 18:38:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7BAF8206D8 for ; Mon, 9 Nov 2020 18:38:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730303AbgKISiI (ORCPT ); Mon, 9 Nov 2020 13:38:08 -0500 Received: from 82-65-109-163.subs.proxad.net ([82.65.109.163]:40200 "EHLO luna.linkmauve.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729119AbgKISiG (ORCPT ); Mon, 9 Nov 2020 13:38:06 -0500 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 4027BF4158C; Sun, 8 Nov 2020 21:20:35 +0100 (CET) From: Emmanuel Gil Peyrot To: linux-media@vger.kernel.org Cc: Ezequiel Garcia , Emmanuel Gil Peyrot Subject: [PATCH 2/2] media: hantro: Use VP8 lengths defined in uapi Date: Sun, 8 Nov 2020 21:20:21 +0100 Message-Id: <20201108202021.4187-2-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201108202021.4187-1-linkmauve@linkmauve.fr> References: <20201108202021.4187-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Emmanuel Gil Peyrot --- drivers/staging/media/hantro/hantro_vp8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_vp8.c b/drivers/staging/media/hantro/hantro_vp8.c index 0e02d147b189..91ec9a05645b 100644 --- a/drivers/staging/media/hantro/hantro_vp8.c +++ b/drivers/staging/media/hantro/hantro_vp8.c @@ -23,11 +23,11 @@ struct vp8_prob_tbl_packed { u8 padding1; /* mv prob */ - u8 prob_mv_context[2][19]; + u8 prob_mv_context[2][V4L2_VP8_MV_PROB_CNT]; u8 padding2[2]; /* coeff probs */ - u8 prob_coeffs[4][8][3][11]; + u8 prob_coeffs[4][8][3][V4L2_VP8_COEFF_PROB_CNT]; u8 padding3[96]; };