summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec_fixed.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 10:50:26 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:15 -0300
commita247ac640df3da573cd661065bf53f37863e2b46 (patch)
tree2702a356900eebec67e06871428dfe2e10e71618 /libavcodec/mpegaudiodec_fixed.c
parent8b3e6ce5f4ab1ebf3a54ff7e0ff440a1a5f842f7 (diff)
downloadffmpeg-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_fixed.c')
-rw-r--r--libavcodec/mpegaudiodec_fixed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpegaudiodec_fixed.c b/libavcodec/mpegaudiodec_fixed.c
index a3c8ddc21e..f9f24330fd 100644
--- a/libavcodec/mpegaudiodec_fixed.c
+++ b/libavcodec/mpegaudiodec_fixed.c
@@ -59,7 +59,7 @@ static const int32_t csa_table[8][4] = {
#include "mpegaudiodec_template.c"
#if CONFIG_MP1_DECODER
-AVCodec ff_mp1_decoder = {
+const AVCodec ff_mp1_decoder = {
.name = "mp1",
.long_name = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
.type = AVMEDIA_TYPE_AUDIO,
@@ -77,7 +77,7 @@ AVCodec ff_mp1_decoder = {
};
#endif
#if CONFIG_MP2_DECODER
-AVCodec ff_mp2_decoder = {
+const AVCodec ff_mp2_decoder = {
.name = "mp2",
.long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
.type = AVMEDIA_TYPE_AUDIO,
@@ -95,7 +95,7 @@ AVCodec ff_mp2_decoder = {
};
#endif
#if CONFIG_MP3_DECODER
-AVCodec ff_mp3_decoder = {
+const AVCodec ff_mp3_decoder = {
.name = "mp3",
.long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
.type = AVMEDIA_TYPE_AUDIO,
@@ -113,7 +113,7 @@ AVCodec ff_mp3_decoder = {
};
#endif
#if CONFIG_MP3ADU_DECODER
-AVCodec ff_mp3adu_decoder = {
+const AVCodec ff_mp3adu_decoder = {
.name = "mp3adu",
.long_name = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
.type = AVMEDIA_TYPE_AUDIO,
@@ -131,7 +131,7 @@ AVCodec ff_mp3adu_decoder = {
};
#endif
#if CONFIG_MP3ON4_DECODER
-AVCodec ff_mp3on4_decoder = {
+const AVCodec ff_mp3on4_decoder = {
.name = "mp3on4",
.long_name = NULL_IF_CONFIG_SMALL("MP3onMP4"),
.type = AVMEDIA_TYPE_AUDIO,