aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-18 02:22:43 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-24 22:02:13 +0100
commit3ab16d091e74c9b0b0c81a1367a11f5d267998c2 (patch)
treee644640b316416e90648711fa0b8457f62a5e3cb
parent9dfc409e6b18d2984bdd5f041413173549e0fdd5 (diff)
downloadffmpeg-3ab16d091e74c9b0b0c81a1367a11f5d267998c2.tar.gz
avcodec/dfa: Use array of fixed-sized strings for fixed-sized strings
Surprisingly neither GCC nor Clang did this transformation on their own. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/dfa.c2
1 files changed, 1 insertions, 1 deletions
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"
};