]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/dfa: Use array of fixed-sized strings for fixed-sized strings
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 18 Mar 2020 01:22:43 +0000 (02:22 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 24 Mar 2020 21:02:13 +0000 (22:02 +0100)
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>
libavcodec/dfa.c

index c6106b9397d796b557aafc667ba6a61126f92d08..31c6c3908942528a166ebd54362006ea03666f5c 100644 (file)
@@ -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"
 };