From patchwork Wed Mar 18 14:06:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 18287 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 F28F644B9E0 for ; Wed, 18 Mar 2020 16:06:21 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CE4E268B700; Wed, 18 Mar 2020 16:06:21 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 06A7568B0F9 for ; Wed, 18 Mar 2020 16:06:16 +0200 (EET) Received: by mail-wr1-f67.google.com with SMTP id f3so23619904wrw.7 for ; Wed, 18 Mar 2020 07:06:16 -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:mime-version :content-transfer-encoding; bh=t7y7N9Rmhi/qKXUzk+dxaZXRxMPTmh79AOGZMMwv6C0=; b=QNrGQH3RpKNCxCyIpXFhk5bDNS884qxWND/qTunrVvgYaY5DQ7+RcmryFRmiv7XxsM ODmSPL6YTw4JST/uNX8sw9xo5Txn5DCdBSj3oTUTk6E33yjmJ242vQtTNV0VUbG5DOLN 3rLyHMNxA3MD/sr8w3TD6GsbbCCcvk+lbbuAHmKAU/uk/R8ATyK1vRXutjG/aTWi9iBd Eib4tM/6oTzmfd8CzafNbhDsCeT7ulU2QsKHpZtI1M18XpO+pPbfqg7L5n9of4+tMtOL 5nFNo/WJwEKvrfxRPxrTUOLLT62zW6pf8oS+8EpEzLtWzdxGk+H0saxPh+o5qIO6NIkS UWaA== 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:mime-version :content-transfer-encoding; bh=t7y7N9Rmhi/qKXUzk+dxaZXRxMPTmh79AOGZMMwv6C0=; b=QzIViDeM9jdISeE8mdVjF9FWYH4by6ALsR1sGMvEgXvdXNfApehV3IuMc+ZPW9Jzyv /zg53nQ6RSQxIOen9mtzyhmPoLrWX7bD0EBlNLddnIBBMXHlu+vZUVR9zfRKAHykxmD4 ZKPQvNWBHWBjXRBJvwZAyWIvigIoSvNEUGuLjTlm2bInKrso27QeZJfJ651Xe1qncWA8 utePE15G4apfFhpAC2ZzTHq7Z4PdjYzejRlom01M5ujYN/5pWE6jdv+qzL5jr5x1l2M9 5IOfuwdcgeJ4Xg2SphG5COpkdvCkRbHI729LlVQw1ehXV3XNV+zjW0AurXboOFPpQIVU yWQw== X-Gm-Message-State: ANhLgQ3/9gPdEYE3Roi04k1UH0u2v4+M7zCBWz0oAKoUibq6P7DXgzuY sh/fqaXFK4nKXiHLoCVGzODskGg8 X-Google-Smtp-Source: ADFU+vtY+GAUiE4myX8cf8CPCvsUpip9sxjF3jL4485O8+tGIKKmsGt0ifwc/CKsiMrK1DPRde5m6g== X-Received: by 2002:adf:f504:: with SMTP id q4mr5672925wro.28.1584540375097; Wed, 18 Mar 2020 07:06:15 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1ab57.dynamic.kabel-deutschland.de. [188.193.171.87]) by smtp.gmail.com with ESMTPSA id p8sm9674141wrw.19.2020.03.18.07.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 07:06:14 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 18 Mar 2020 15:06:07 +0100 Message-Id: <20200318140607.22256-1-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/dfa: Use array of fixed-sized strings for fixed-sized strings 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" Surprisingly neither GCC nor Clang did this transformation on their own. Signed-off-by: Andreas Rheinhardt --- libavcodec/dfa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dfa.c b/libavcodec/dfa.c index c6106b9397..31c6c39089 100644 --- a/libavcodec/dfa.c +++ b/libavcodec/dfa.c @@ -332,7 +332,7 @@ static const chunk_decoder decoder[8] = { decode_tdlt, decode_dsw1, decode_blck, decode_dds1, }; -static const char * const chunk_name[8] = { +static const char chunk_name[8][5] = { "COPY", "TSW1", "BDLT", "WDLT", "TDLT", "DSW1", "BLCK", "DDS1" };