diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-25 10:50:26 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:15 -0300 |
commit | a247ac640df3da573cd661065bf53f37863e2b46 (patch) | |
tree | 2702a356900eebec67e06871428dfe2e10e71618 /libavcodec/mpegaudiodec_float.c | |
parent | 8b3e6ce5f4ab1ebf3a54ff7e0ff440a1a5f842f7 (diff) | |
download | ffmpeg-a247ac640df3da573cd661065bf53f37863e2b46.tar.gz |
avcodec: Constify AVCodecs
Given that the AVCodec.next pointer has now been removed, most of the
AVCodecs are not modified at all any more and can therefore be made
const (as this patch does); the only exceptions are the very few codecs
for external libraries that have a init_static_data callback.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudiodec_float.c')
-rw-r--r-- | libavcodec/mpegaudiodec_float.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpegaudiodec_float.c b/libavcodec/mpegaudiodec_float.c index 3ab7651d5b..c7b7839997 100644 --- a/libavcodec/mpegaudiodec_float.c +++ b/libavcodec/mpegaudiodec_float.c @@ -72,7 +72,7 @@ static const float csa_table[8][4] = { #include "mpegaudiodec_template.c" #if CONFIG_MP1FLOAT_DECODER -AVCodec ff_mp1float_decoder = { +const AVCodec ff_mp1float_decoder = { .name = "mp1float", .long_name = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"), .type = AVMEDIA_TYPE_AUDIO, @@ -90,7 +90,7 @@ AVCodec ff_mp1float_decoder = { }; #endif #if CONFIG_MP2FLOAT_DECODER -AVCodec ff_mp2float_decoder = { +const AVCodec ff_mp2float_decoder = { .name = "mp2float", .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), .type = AVMEDIA_TYPE_AUDIO, @@ -108,7 +108,7 @@ AVCodec ff_mp2float_decoder = { }; #endif #if CONFIG_MP3FLOAT_DECODER -AVCodec ff_mp3float_decoder = { +const AVCodec ff_mp3float_decoder = { .name = "mp3float", .long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"), .type = AVMEDIA_TYPE_AUDIO, @@ -126,7 +126,7 @@ AVCodec ff_mp3float_decoder = { }; #endif #if CONFIG_MP3ADUFLOAT_DECODER -AVCodec ff_mp3adufloat_decoder = { +const AVCodec ff_mp3adufloat_decoder = { .name = "mp3adufloat", .long_name = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"), .type = AVMEDIA_TYPE_AUDIO, @@ -144,7 +144,7 @@ AVCodec ff_mp3adufloat_decoder = { }; #endif #if CONFIG_MP3ON4FLOAT_DECODER -AVCodec ff_mp3on4float_decoder = { +const AVCodec ff_mp3on4float_decoder = { .name = "mp3on4float", .long_name = NULL_IF_CONFIG_SMALL("MP3onMP4"), .type = AVMEDIA_TYPE_AUDIO, |