1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

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>
This commit is contained in:
Andreas Rheinhardt 2020-03-18 02:22:43 +01:00
parent 9dfc409e6b
commit 3ab16d091e

View 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"
};