From patchwork Sun Sep 24 17:31:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 43888 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:2a18:b0:15d:8365:d4b8 with SMTP id e24csp783313pzh; Sun, 24 Sep 2023 10:32:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlrgt31mGvXvg/QMLqZe0+pNTG4rEqDyGIJSkjRzHj2qWnTMYbkfbqI7fWLrmuHxc74QDn X-Received: by 2002:aa7:cd85:0:b0:530:46c:8e36 with SMTP id x5-20020aa7cd85000000b00530046c8e36mr3693251edv.17.1695576731367; Sun, 24 Sep 2023 10:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695576731; cv=none; d=google.com; s=arc-20160816; b=dkyWUH242QRFxDyVxQkEMBpE0gmtU7zN5XnG381QEIx8r97IlR/8jw7z4KYnfZ6TPD xPCZ6SlZ8YBVEbDq5dX4u64W7+cRhEEHEHpN+mqu2mkJgq0AYSV/5+n8DDhOmgS7RuaS CsYVnzjI+OiS9VzPpwZSWDcL9OslInjyZeb5KuWMoxoQdy6GqMEjRKgBVVLr10gl71O0 ixanCIbFeeK31ccVPn9heqFMmtNiyyiivEuWsCMoYvbSrNwz6y8xMwtSRgtBojRTu9nV gl6Wh4asBVa7eK3G71+JgPd/EKJ6CjaYusyYOWICab1uBd7fux5dwBSLpSjWhxlOlJ3q 3xjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to; bh=yLZgOgoiZWhERQJFYVnBgau3Dcovk0uetWsmF1XrlZk=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=CB5aXR6RNPUKhLJj2y35v952xut03z6MwPn7mMqmu+bQ8LNVz2NZj9Nt/fE08PoZWX F5Xe6AeX0SquzRoFGCzkkGup2RCjwTX4JdMpakKJWN5RacwyhhA7hDSUO40v4ylMBCbl V9tiNVVrzALO/wXedidfeq1n4MBR93lfefZNeC8ZS5qoattpYfbl792Vh6kmcnSANhr0 E6PYCM24T1QovjlLluV0sWbxxqNeeSfoMu4Rm1S82wZ9jgWEGGTn+9XouGSt1lPec0On 81AZnhG/eb8tZIxvmdaKBijetIwra835CPg8I4Q9vHSEsIjJkAocUSv/JwsEv25C2TJj RT1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=IkSJGq7+; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id j7-20020aa7c407000000b00530bc205fcesi7357519edq.32.2023.09.24.10.32.09; Sun, 24 Sep 2023 10:32:11 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=IkSJGq7+; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 89DB368C97E; Sun, 24 Sep 2023 20:32:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2FDA468C80C for ; Sun, 24 Sep 2023 20:32:00 +0300 (EEST) Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-6c09d760cb9so3171075a34.2 for ; Sun, 24 Sep 2023 10:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695576718; x=1696181518; darn=ffmpeg.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=k5Ve/yB2RikilhQ//QyyxQ8PKeY/vuJ7ME3weV9hXdM=; b=IkSJGq7+ciQKaqpmv07uP1NRJzwd52HxNYbA/DjWrm/uhGIHP2QZwSGpBW4Co4RdcX AEDLZ8ebdmARnvunBzEXn0w348BlEkj6nbgT/RsByKfd3iPSFN6f6woY4tTgcJz9FoZ8 Y9g0G60eErC7ayA+aXOUZUcCEsoqENbdAQJAxjLQ459VdJOqKZGphRLCfqXWWnwY/op8 lRHxMcKbVOW8MkPgsybJ5X8YYEY+Bz7+rrihhXoqZ3YBxITHJZmamzoNwegVVpgYjTf0 1mRQYEQ4wEmE7N5MElrl0c6E48mpZbWAM/qAenxdYbUvF/aFvl82RqYu4w+Nb9YAYYXy S6QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695576718; x=1696181518; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=k5Ve/yB2RikilhQ//QyyxQ8PKeY/vuJ7ME3weV9hXdM=; b=u5IOwM82Xg18bGyeicmrLvktuq9S/TMvQbwruc0pCG0M5J/Bx7pkjzo/MS22CRNrna foTVEQTIYdJlgbjaqeMOQF+o3lph+y+RIrZboxRC2210dsCoz5qq93o1vlq9gHRMBHUP 4nbyxmhR+afWg96GliyORczbLUI6ZTnwE4fAcCOLz9jpbUg/e/xtbBsj2MmPXnIBb1jV wRu43xcvA5i+nvvGCaYB5Yiq9/fUsypUapanzyQFD7qoBOz5Zbl3+JgNjyI4WgRevHSg 7bVsWGHJlAm6M76DQh1VOkiFrVWwbtprvdY79E/lGKVUuxNzlOj+QQiOOa3w5uf3htgt /AUw== X-Gm-Message-State: AOJu0YytRVa5nxja/WPnOfbhtU9pLCre55yHNF7KXgY5v/ytjovV8CGE 0X3ORtUxqsDtiMP0nVFlGy64AljbxhzhOCvobmbRJ7uqdHg= X-Received: by 2002:a05:6358:428e:b0:142:d62c:78e5 with SMTP id s14-20020a056358428e00b00142d62c78e5mr6175855rwc.15.1695576718291; Sun, 24 Sep 2023 10:31:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a59:bddb:0:b0:403:6aab:43d5 with HTTP; Sun, 24 Sep 2023 10:31:57 -0700 (PDT) From: Paul B Mahol Date: Sun, 24 Sep 2023 19:31:57 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] dxa patch X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 7178heCl6+6a Attached. From 8863580694665ff33312829209b7aabc41ae1855 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 24 Sep 2023 19:28:40 +0200 Subject: [PATCH] avcodec/dxa: use uint8_t for type of arrays Signed-off-by: Paul B Mahol --- libavcodec/dxa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index 650502ad23..d33ac3c8b0 100644 --- a/libavcodec/dxa.c +++ b/libavcodec/dxa.c @@ -45,8 +45,8 @@ typedef struct DxaDecContext { uint32_t pal[256]; } DxaDecContext; -static const int shift1[6] = { 0, 8, 8, 8, 4, 4 }; -static const int shift2[6] = { 0, 0, 8, 4, 0, 4 }; +static const uint8_t shift1[6] = { 0, 8, 8, 8, 4, 4 }; +static const uint8_t shift2[6] = { 0, 0, 8, 4, 0, 4 }; static int decode_13(AVCodecContext *avctx, DxaDecContext *c, uint8_t* dst, int stride, uint8_t *src, int srcsize, uint8_t *ref) -- 2.42.0