[FFmpeg-cvslog] avcodec: Constify all the AVCodecParsers
Andreas Rheinhardt
git at videolan.org
Wed Apr 28 00:16:55 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Mar 7 00:20:43 2021 +0100| [e625ae609206e0550ff733965c6f5447579320aa] | committer: James Almer
avcodec: Constify all the AVCodecParsers
Possible now that the next pointer no longer exists.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e625ae609206e0550ff733965c6f5447579320aa
---
libavcodec/aac_parser.c | 2 +-
libavcodec/ac3_parser.c | 2 +-
libavcodec/adx_parser.c | 2 +-
libavcodec/av1_parser.c | 2 +-
libavcodec/avs2_parser.c | 2 +-
libavcodec/avs3_parser.c | 2 +-
libavcodec/bmp_parser.c | 2 +-
libavcodec/cavs_parser.c | 2 +-
libavcodec/cook_parser.c | 2 +-
libavcodec/cri_parser.c | 2 +-
libavcodec/dca_parser.c | 2 +-
libavcodec/dirac_parser.c | 2 +-
libavcodec/dnxhd_parser.c | 2 +-
libavcodec/dolby_e_parser.c | 2 +-
libavcodec/dpx_parser.c | 2 +-
libavcodec/dvaudio_parser.c | 2 +-
libavcodec/dvbsub_parser.c | 2 +-
libavcodec/dvd_nav_parser.c | 2 +-
libavcodec/dvdsub_parser.c | 2 +-
libavcodec/flac_parser.c | 2 +-
libavcodec/g723_1_parser.c | 2 +-
libavcodec/g729_parser.c | 2 +-
libavcodec/gif_parser.c | 2 +-
libavcodec/gsm_parser.c | 2 +-
libavcodec/h261_parser.c | 2 +-
libavcodec/h263_parser.c | 2 +-
libavcodec/h264_parser.c | 2 +-
libavcodec/hevc_parser.c | 2 +-
libavcodec/ipu_parser.c | 2 +-
libavcodec/jpeg2000_parser.c | 2 +-
libavcodec/latm_parser.c | 2 +-
libavcodec/mjpeg_parser.c | 2 +-
libavcodec/mlp_parser.c | 2 +-
libavcodec/mpeg4video_parser.c | 2 +-
libavcodec/mpegaudio_parser.c | 2 +-
libavcodec/mpegvideo_parser.c | 2 +-
libavcodec/opus_parser.c | 2 +-
libavcodec/parsers.c | 104 ++++++++++++++++++++---------------------
libavcodec/png_parser.c | 2 +-
libavcodec/pnm_parser.c | 2 +-
libavcodec/rv34_parser.c | 4 +-
libavcodec/sbc_parser.c | 2 +-
libavcodec/sipr_parser.c | 2 +-
libavcodec/tak_parser.c | 2 +-
libavcodec/vc1_parser.c | 2 +-
libavcodec/vorbis_parser.c | 2 +-
libavcodec/vp3_parser.c | 2 +-
libavcodec/vp8_parser.c | 2 +-
libavcodec/vp9_parser.c | 2 +-
libavcodec/webp_parser.c | 2 +-
libavcodec/xbm_parser.c | 2 +-
libavcodec/xma_parser.c | 2 +-
52 files changed, 104 insertions(+), 104 deletions(-)
diff --git a/libavcodec/aac_parser.c b/libavcodec/aac_parser.c
index b8692625f3..f3baf7cde3 100644
--- a/libavcodec/aac_parser.c
+++ b/libavcodec/aac_parser.c
@@ -62,7 +62,7 @@ static av_cold int aac_parse_init(AVCodecParserContext *s1)
}
-AVCodecParser ff_aac_parser = {
+const AVCodecParser ff_aac_parser = {
.codec_ids = { AV_CODEC_ID_AAC },
.priv_data_size = sizeof(AACAC3ParseContext),
.parser_init = aac_parse_init,
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c
index ba171653ef..9ed6ede5c3 100644
--- a/libavcodec/ac3_parser.c
+++ b/libavcodec/ac3_parser.c
@@ -240,7 +240,7 @@ static av_cold int ac3_parse_init(AVCodecParserContext *s1)
}
-AVCodecParser ff_ac3_parser = {
+const AVCodecParser ff_ac3_parser = {
.codec_ids = { AV_CODEC_ID_AC3, AV_CODEC_ID_EAC3 },
.priv_data_size = sizeof(AACAC3ParseContext),
.parser_init = ac3_parse_init,
diff --git a/libavcodec/adx_parser.c b/libavcodec/adx_parser.c
index 1fa718f694..52aa14b7ad 100644
--- a/libavcodec/adx_parser.c
+++ b/libavcodec/adx_parser.c
@@ -88,7 +88,7 @@ static int adx_parse(AVCodecParserContext *s1,
return next;
}
-AVCodecParser ff_adx_parser = {
+const AVCodecParser ff_adx_parser = {
.codec_ids = { AV_CODEC_ID_ADPCM_ADX },
.priv_data_size = sizeof(ADXParseContext),
.parser_parse = adx_parse,
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index 6a76ffb7bc..578f5293c8 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -227,7 +227,7 @@ static int av1_parser_split(AVCodecContext *avctx,
return 0;
}
-AVCodecParser ff_av1_parser = {
+const AVCodecParser ff_av1_parser = {
.codec_ids = { AV_CODEC_ID_AV1 },
.priv_data_size = sizeof(AV1ParseContext),
.parser_init = av1_parser_init,
diff --git a/libavcodec/avs2_parser.c b/libavcodec/avs2_parser.c
index 54f687142f..059faf77c5 100644
--- a/libavcodec/avs2_parser.c
+++ b/libavcodec/avs2_parser.c
@@ -86,7 +86,7 @@ static int avs2_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_avs2_parser = {
+const AVCodecParser ff_avs2_parser = {
.codec_ids = { AV_CODEC_ID_AVS2 },
.priv_data_size = sizeof(ParseContext),
.parser_parse = avs2_parse,
diff --git a/libavcodec/avs3_parser.c b/libavcodec/avs3_parser.c
index bf97f75db6..b0e720a844 100644
--- a/libavcodec/avs3_parser.c
+++ b/libavcodec/avs3_parser.c
@@ -170,7 +170,7 @@ static int avs3_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_avs3_parser = {
+const AVCodecParser ff_avs3_parser = {
.codec_ids = { AV_CODEC_ID_AVS3 },
.priv_data_size = sizeof(ParseContext),
.parser_parse = avs3_parse,
diff --git a/libavcodec/bmp_parser.c b/libavcodec/bmp_parser.c
index 700bf27af1..3440794b2c 100644
--- a/libavcodec/bmp_parser.c
+++ b/libavcodec/bmp_parser.c
@@ -105,7 +105,7 @@ flush:
return next;
}
-AVCodecParser ff_bmp_parser = {
+const AVCodecParser ff_bmp_parser = {
.codec_ids = { AV_CODEC_ID_BMP },
.priv_data_size = sizeof(BMPParseContext),
.parser_parse = bmp_parse,
diff --git a/libavcodec/cavs_parser.c b/libavcodec/cavs_parser.c
index 6067a39826..20adca1dbc 100644
--- a/libavcodec/cavs_parser.c
+++ b/libavcodec/cavs_parser.c
@@ -97,7 +97,7 @@ static int cavsvideo_parse(AVCodecParserContext *s,
return next;
}
-AVCodecParser ff_cavsvideo_parser = {
+const AVCodecParser ff_cavsvideo_parser = {
.codec_ids = { AV_CODEC_ID_CAVS },
.priv_data_size = sizeof(ParseContext),
.parser_parse = cavsvideo_parse,
diff --git a/libavcodec/cook_parser.c b/libavcodec/cook_parser.c
index 6dbbfd8a53..a05ebf94b8 100644
--- a/libavcodec/cook_parser.c
+++ b/libavcodec/cook_parser.c
@@ -53,7 +53,7 @@ static int cook_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return buf_size;
}
-AVCodecParser ff_cook_parser = {
+const AVCodecParser ff_cook_parser = {
.codec_ids = { AV_CODEC_ID_COOK },
.priv_data_size = sizeof(CookParseContext),
.parser_parse = cook_parse,
diff --git a/libavcodec/cri_parser.c b/libavcodec/cri_parser.c
index 9790747a9e..9295f823ce 100644
--- a/libavcodec/cri_parser.c
+++ b/libavcodec/cri_parser.c
@@ -97,7 +97,7 @@ static int cri_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_cri_parser = {
+const AVCodecParser ff_cri_parser = {
.codec_ids = { AV_CODEC_ID_CRI },
.priv_data_size = sizeof(CRIParser),
.parser_parse = cri_parse,
diff --git a/libavcodec/dca_parser.c b/libavcodec/dca_parser.c
index 80d665985e..8b5c354312 100644
--- a/libavcodec/dca_parser.c
+++ b/libavcodec/dca_parser.c
@@ -343,7 +343,7 @@ static int dca_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_dca_parser = {
+const AVCodecParser ff_dca_parser = {
.codec_ids = { AV_CODEC_ID_DTS },
.priv_data_size = sizeof(DCAParseContext),
.parser_init = dca_parse_init,
diff --git a/libavcodec/dirac_parser.c b/libavcodec/dirac_parser.c
index 8e68b4a9da..912f594243 100644
--- a/libavcodec/dirac_parser.c
+++ b/libavcodec/dirac_parser.c
@@ -273,7 +273,7 @@ static void dirac_parse_close(AVCodecParserContext *s)
av_freep(&pc->buffer);
}
-AVCodecParser ff_dirac_parser = {
+const AVCodecParser ff_dirac_parser = {
.codec_ids = { AV_CODEC_ID_DIRAC },
.priv_data_size = sizeof(DiracParseContext),
.parser_parse = dirac_parse,
diff --git a/libavcodec/dnxhd_parser.c b/libavcodec/dnxhd_parser.c
index 63b4ff89e1..4ba619c9bb 100644
--- a/libavcodec/dnxhd_parser.c
+++ b/libavcodec/dnxhd_parser.c
@@ -138,7 +138,7 @@ static int dnxhd_parse(AVCodecParserContext *s,
return next;
}
-AVCodecParser ff_dnxhd_parser = {
+const AVCodecParser ff_dnxhd_parser = {
.codec_ids = { AV_CODEC_ID_DNXHD },
.priv_data_size = sizeof(DNXHDParserContext),
.parser_parse = dnxhd_parse,
diff --git a/libavcodec/dolby_e_parser.c b/libavcodec/dolby_e_parser.c
index 3ae973bddf..8e187523f3 100644
--- a/libavcodec/dolby_e_parser.c
+++ b/libavcodec/dolby_e_parser.c
@@ -62,7 +62,7 @@ end:
return buf_size;
}
-AVCodecParser ff_dolby_e_parser = {
+const AVCodecParser ff_dolby_e_parser = {
.codec_ids = { AV_CODEC_ID_DOLBY_E },
.priv_data_size = sizeof(DBEParseContext),
.parser_parse = dolby_e_parse,
diff --git a/libavcodec/dpx_parser.c b/libavcodec/dpx_parser.c
index 8e4a01e09d..b74e6c5c68 100644
--- a/libavcodec/dpx_parser.c
+++ b/libavcodec/dpx_parser.c
@@ -108,7 +108,7 @@ flush:
return next;
}
-AVCodecParser ff_dpx_parser = {
+const AVCodecParser ff_dpx_parser = {
.codec_ids = { AV_CODEC_ID_DPX },
.priv_data_size = sizeof(DPXParseContext),
.parser_parse = dpx_parse,
diff --git a/libavcodec/dvaudio_parser.c b/libavcodec/dvaudio_parser.c
index 160faafdb7..ef6bd45582 100644
--- a/libavcodec/dvaudio_parser.c
+++ b/libavcodec/dvaudio_parser.c
@@ -40,7 +40,7 @@ static int dvaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return buf_size;
}
-AVCodecParser ff_dvaudio_parser = {
+const AVCodecParser ff_dvaudio_parser = {
.codec_ids = { AV_CODEC_ID_DVAUDIO },
.parser_parse = dvaudio_parse,
};
diff --git a/libavcodec/dvbsub_parser.c b/libavcodec/dvbsub_parser.c
index b7a3d6154c..3dd97200b4 100644
--- a/libavcodec/dvbsub_parser.c
+++ b/libavcodec/dvbsub_parser.c
@@ -165,7 +165,7 @@ static int dvbsub_parse(AVCodecParserContext *s,
return buf_size;
}
-AVCodecParser ff_dvbsub_parser = {
+const AVCodecParser ff_dvbsub_parser = {
.codec_ids = { AV_CODEC_ID_DVB_SUBTITLE },
.priv_data_size = sizeof(DVBSubParseContext),
.parser_parse = dvbsub_parse,
diff --git a/libavcodec/dvd_nav_parser.c b/libavcodec/dvd_nav_parser.c
index 6e2352dc3c..3ea4cd1ef5 100644
--- a/libavcodec/dvd_nav_parser.c
+++ b/libavcodec/dvd_nav_parser.c
@@ -107,7 +107,7 @@ static int dvd_nav_parse(AVCodecParserContext *s,
return buf_size;
}
-AVCodecParser ff_dvd_nav_parser = {
+const AVCodecParser ff_dvd_nav_parser = {
.codec_ids = { AV_CODEC_ID_DVD_NAV },
.priv_data_size = sizeof(DVDNavParseContext),
.parser_init = dvd_nav_parse_init,
diff --git a/libavcodec/dvdsub_parser.c b/libavcodec/dvdsub_parser.c
index 054af69db9..44738a73d6 100644
--- a/libavcodec/dvdsub_parser.c
+++ b/libavcodec/dvdsub_parser.c
@@ -84,7 +84,7 @@ static av_cold void dvdsub_parse_close(AVCodecParserContext *s)
av_freep(&pc->packet);
}
-AVCodecParser ff_dvdsub_parser = {
+const AVCodecParser ff_dvdsub_parser = {
.codec_ids = { AV_CODEC_ID_DVD_SUBTITLE },
.priv_data_size = sizeof(DVDSubParseContext),
.parser_parse = dvdsub_parse,
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c
index 3424583c49..d3d9c889a1 100644
--- a/libavcodec/flac_parser.c
+++ b/libavcodec/flac_parser.c
@@ -742,7 +742,7 @@ static void flac_parse_close(AVCodecParserContext *c)
av_freep(&fpc->wrap_buf);
}
-AVCodecParser ff_flac_parser = {
+const AVCodecParser ff_flac_parser = {
.codec_ids = { AV_CODEC_ID_FLAC },
.priv_data_size = sizeof(FLACParseContext),
.parser_init = flac_parse_init,
diff --git a/libavcodec/g723_1_parser.c b/libavcodec/g723_1_parser.c
index 0305ca329d..b6b3fcb84b 100644
--- a/libavcodec/g723_1_parser.c
+++ b/libavcodec/g723_1_parser.c
@@ -52,7 +52,7 @@ static int g723_1_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_g723_1_parser = {
+const AVCodecParser ff_g723_1_parser = {
.codec_ids = { AV_CODEC_ID_G723_1 },
.priv_data_size = sizeof(G723_1ParseContext),
.parser_parse = g723_1_parse,
diff --git a/libavcodec/g729_parser.c b/libavcodec/g729_parser.c
index 010f688104..76d6f93808 100644
--- a/libavcodec/g729_parser.c
+++ b/libavcodec/g729_parser.c
@@ -82,7 +82,7 @@ static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_g729_parser = {
+const AVCodecParser ff_g729_parser = {
.codec_ids = { AV_CODEC_ID_G729, AV_CODEC_ID_ACELP_KELVIN },
.priv_data_size = sizeof(G729ParseContext),
.parser_parse = g729_parse,
diff --git a/libavcodec/gif_parser.c b/libavcodec/gif_parser.c
index e88338fd47..a32bfa570a 100644
--- a/libavcodec/gif_parser.c
+++ b/libavcodec/gif_parser.c
@@ -180,7 +180,7 @@ static int gif_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_gif_parser = {
+const AVCodecParser ff_gif_parser = {
.codec_ids = { AV_CODEC_ID_GIF },
.priv_data_size = sizeof(GIFParseContext),
.parser_parse = gif_parse,
diff --git a/libavcodec/gsm_parser.c b/libavcodec/gsm_parser.c
index 1054a30ca9..3492806052 100644
--- a/libavcodec/gsm_parser.c
+++ b/libavcodec/gsm_parser.c
@@ -83,7 +83,7 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_gsm_parser = {
+const AVCodecParser ff_gsm_parser = {
.codec_ids = { AV_CODEC_ID_GSM, AV_CODEC_ID_GSM_MS },
.priv_data_size = sizeof(GSMParseContext),
.parser_parse = gsm_parse,
diff --git a/libavcodec/h261_parser.c b/libavcodec/h261_parser.c
index 2299c1cfc5..e0b84c509e 100644
--- a/libavcodec/h261_parser.c
+++ b/libavcodec/h261_parser.c
@@ -86,7 +86,7 @@ static int h261_parse(AVCodecParserContext *s,
return next;
}
-AVCodecParser ff_h261_parser = {
+const AVCodecParser ff_h261_parser = {
.codec_ids = { AV_CODEC_ID_H261 },
.priv_data_size = sizeof(ParseContext),
.parser_parse = h261_parse,
diff --git a/libavcodec/h263_parser.c b/libavcodec/h263_parser.c
index 2e7d4930c3..e05b8a4ac4 100644
--- a/libavcodec/h263_parser.c
+++ b/libavcodec/h263_parser.c
@@ -87,7 +87,7 @@ static int h263_parse(AVCodecParserContext *s,
return next;
}
-AVCodecParser ff_h263_parser = {
+const AVCodecParser ff_h263_parser = {
.codec_ids = { AV_CODEC_ID_H263 },
.priv_data_size = sizeof(ParseContext),
.parser_parse = h263_parse,
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index aacd44cf3b..880ccb50fa 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -702,7 +702,7 @@ static av_cold int init(AVCodecParserContext *s)
return 0;
}
-AVCodecParser ff_h264_parser = {
+const AVCodecParser ff_h264_parser = {
.codec_ids = { AV_CODEC_ID_H264 },
.priv_data_size = sizeof(H264ParseContext),
.parser_init = init,
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index 463d352055..320d4eb562 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -380,7 +380,7 @@ static void hevc_parser_close(AVCodecParserContext *s)
av_freep(&ctx->pc.buffer);
}
-AVCodecParser ff_hevc_parser = {
+const AVCodecParser ff_hevc_parser = {
.codec_ids = { AV_CODEC_ID_HEVC },
.priv_data_size = sizeof(HEVCParserContext),
.parser_parse = hevc_parse,
diff --git a/libavcodec/ipu_parser.c b/libavcodec/ipu_parser.c
index c22172f0bf..1193a65b1b 100644
--- a/libavcodec/ipu_parser.c
+++ b/libavcodec/ipu_parser.c
@@ -69,7 +69,7 @@ static int ipu_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_ipu_parser = {
+const AVCodecParser ff_ipu_parser = {
.codec_ids = { AV_CODEC_ID_IPU },
.priv_data_size = sizeof(IPUParseContext),
.parser_parse = ipu_parse,
diff --git a/libavcodec/jpeg2000_parser.c b/libavcodec/jpeg2000_parser.c
index 5923e8f433..123197fdca 100644
--- a/libavcodec/jpeg2000_parser.c
+++ b/libavcodec/jpeg2000_parser.c
@@ -182,7 +182,7 @@ static int jpeg2000_parse(AVCodecParserContext *s,
return next;
}
-AVCodecParser ff_jpeg2000_parser = {
+const AVCodecParser ff_jpeg2000_parser = {
.codec_ids = { AV_CODEC_ID_JPEG2000 },
.priv_data_size = sizeof(JPEG2000ParserContext),
.parser_parse = jpeg2000_parse,
diff --git a/libavcodec/latm_parser.c b/libavcodec/latm_parser.c
index 3820f58d69..8cc2024c4f 100644
--- a/libavcodec/latm_parser.c
+++ b/libavcodec/latm_parser.c
@@ -104,7 +104,7 @@ static int latm_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_aac_latm_parser = {
+const AVCodecParser ff_aac_latm_parser = {
.codec_ids = { AV_CODEC_ID_AAC_LATM },
.priv_data_size = sizeof(LATMParseContext),
.parser_parse = latm_parse,
diff --git a/libavcodec/mjpeg_parser.c b/libavcodec/mjpeg_parser.c
index f54fdd37cb..16a5902c7c 100644
--- a/libavcodec/mjpeg_parser.c
+++ b/libavcodec/mjpeg_parser.c
@@ -128,7 +128,7 @@ static int jpeg_parse(AVCodecParserContext *s,
}
-AVCodecParser ff_mjpeg_parser = {
+const AVCodecParser ff_mjpeg_parser = {
.codec_ids = { AV_CODEC_ID_MJPEG, AV_CODEC_ID_JPEGLS },
.priv_data_size = sizeof(MJPEGParserContext),
.parser_parse = jpeg_parse,
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index e7162f4aa8..9fea7db955 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -208,7 +208,7 @@ lost_sync:
return 1;
}
-AVCodecParser ff_mlp_parser = {
+const AVCodecParser ff_mlp_parser = {
.codec_ids = { AV_CODEC_ID_MLP, AV_CODEC_ID_TRUEHD },
.priv_data_size = sizeof(MLPParseContext),
.parser_init = mlp_init,
diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c
index 9ca0f14976..afa10c7727 100644
--- a/libavcodec/mpeg4video_parser.c
+++ b/libavcodec/mpeg4video_parser.c
@@ -153,7 +153,7 @@ static int mpeg4video_parse(AVCodecParserContext *s,
return next;
}
-AVCodecParser ff_mpeg4video_parser = {
+const AVCodecParser ff_mpeg4video_parser = {
.codec_ids = { AV_CODEC_ID_MPEG4 },
.priv_data_size = sizeof(struct Mp4vParseContext),
.parser_init = mpeg4video_parse_init,
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index 1005e89aae..2549503d35 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -135,7 +135,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
}
-AVCodecParser ff_mpegaudio_parser = {
+const AVCodecParser ff_mpegaudio_parser = {
.codec_ids = { AV_CODEC_ID_MP1, AV_CODEC_ID_MP2, AV_CODEC_ID_MP3, AV_CODEC_ID_MP3ADU },
.priv_data_size = sizeof(MpegAudioParseContext),
.parser_parse = mpegaudio_parse,
diff --git a/libavcodec/mpegvideo_parser.c b/libavcodec/mpegvideo_parser.c
index c02cd7f92f..4e4f569b13 100644
--- a/libavcodec/mpegvideo_parser.c
+++ b/libavcodec/mpegvideo_parser.c
@@ -236,7 +236,7 @@ static int mpegvideo_parse_init(AVCodecParserContext *s)
return 0;
}
-AVCodecParser ff_mpegvideo_parser = {
+const AVCodecParser ff_mpegvideo_parser = {
.codec_ids = { AV_CODEC_ID_MPEG1VIDEO, AV_CODEC_ID_MPEG2VIDEO },
.priv_data_size = sizeof(struct MpvParseContext),
.parser_init = mpegvideo_parse_init,
diff --git a/libavcodec/opus_parser.c b/libavcodec/opus_parser.c
index 28b0933900..726c010f67 100644
--- a/libavcodec/opus_parser.c
+++ b/libavcodec/opus_parser.c
@@ -190,7 +190,7 @@ static int opus_parse(AVCodecParserContext *ctx, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_opus_parser = {
+const AVCodecParser ff_opus_parser = {
.codec_ids = { AV_CODEC_ID_OPUS },
.priv_data_size = sizeof(OpusParseContext),
.parser_parse = opus_parse,
diff --git a/libavcodec/parsers.c b/libavcodec/parsers.c
index 40b42e6d1a..5ab1a226d9 100644
--- a/libavcodec/parsers.c
+++ b/libavcodec/parsers.c
@@ -20,58 +20,58 @@
#include "avcodec.h"
-extern AVCodecParser ff_aac_parser;
-extern AVCodecParser ff_aac_latm_parser;
-extern AVCodecParser ff_ac3_parser;
-extern AVCodecParser ff_adx_parser;
-extern AVCodecParser ff_av1_parser;
-extern AVCodecParser ff_avs2_parser;
-extern AVCodecParser ff_avs3_parser;
-extern AVCodecParser ff_bmp_parser;
-extern AVCodecParser ff_cavsvideo_parser;
-extern AVCodecParser ff_cook_parser;
-extern AVCodecParser ff_cri_parser;
-extern AVCodecParser ff_dca_parser;
-extern AVCodecParser ff_dirac_parser;
-extern AVCodecParser ff_dnxhd_parser;
-extern AVCodecParser ff_dolby_e_parser;
-extern AVCodecParser ff_dpx_parser;
-extern AVCodecParser ff_dvaudio_parser;
-extern AVCodecParser ff_dvbsub_parser;
-extern AVCodecParser ff_dvdsub_parser;
-extern AVCodecParser ff_dvd_nav_parser;
-extern AVCodecParser ff_flac_parser;
-extern AVCodecParser ff_g723_1_parser;
-extern AVCodecParser ff_g729_parser;
-extern AVCodecParser ff_gif_parser;
-extern AVCodecParser ff_gsm_parser;
-extern AVCodecParser ff_h261_parser;
-extern AVCodecParser ff_h263_parser;
-extern AVCodecParser ff_h264_parser;
-extern AVCodecParser ff_hevc_parser;
-extern AVCodecParser ff_ipu_parser;
-extern AVCodecParser ff_jpeg2000_parser;
-extern AVCodecParser ff_mjpeg_parser;
-extern AVCodecParser ff_mlp_parser;
-extern AVCodecParser ff_mpeg4video_parser;
-extern AVCodecParser ff_mpegaudio_parser;
-extern AVCodecParser ff_mpegvideo_parser;
-extern AVCodecParser ff_opus_parser;
-extern AVCodecParser ff_png_parser;
-extern AVCodecParser ff_pnm_parser;
-extern AVCodecParser ff_rv30_parser;
-extern AVCodecParser ff_rv40_parser;
-extern AVCodecParser ff_sbc_parser;
-extern AVCodecParser ff_sipr_parser;
-extern AVCodecParser ff_tak_parser;
-extern AVCodecParser ff_vc1_parser;
-extern AVCodecParser ff_vorbis_parser;
-extern AVCodecParser ff_vp3_parser;
-extern AVCodecParser ff_vp8_parser;
-extern AVCodecParser ff_vp9_parser;
-extern AVCodecParser ff_webp_parser;
-extern AVCodecParser ff_xbm_parser;
-extern AVCodecParser ff_xma_parser;
+extern const AVCodecParser ff_aac_parser;
+extern const AVCodecParser ff_aac_latm_parser;
+extern const AVCodecParser ff_ac3_parser;
+extern const AVCodecParser ff_adx_parser;
+extern const AVCodecParser ff_av1_parser;
+extern const AVCodecParser ff_avs2_parser;
+extern const AVCodecParser ff_avs3_parser;
+extern const AVCodecParser ff_bmp_parser;
+extern const AVCodecParser ff_cavsvideo_parser;
+extern const AVCodecParser ff_cook_parser;
+extern const AVCodecParser ff_cri_parser;
+extern const AVCodecParser ff_dca_parser;
+extern const AVCodecParser ff_dirac_parser;
+extern const AVCodecParser ff_dnxhd_parser;
+extern const AVCodecParser ff_dolby_e_parser;
+extern const AVCodecParser ff_dpx_parser;
+extern const AVCodecParser ff_dvaudio_parser;
+extern const AVCodecParser ff_dvbsub_parser;
+extern const AVCodecParser ff_dvdsub_parser;
+extern const AVCodecParser ff_dvd_nav_parser;
+extern const AVCodecParser ff_flac_parser;
+extern const AVCodecParser ff_g723_1_parser;
+extern const AVCodecParser ff_g729_parser;
+extern const AVCodecParser ff_gif_parser;
+extern const AVCodecParser ff_gsm_parser;
+extern const AVCodecParser ff_h261_parser;
+extern const AVCodecParser ff_h263_parser;
+extern const AVCodecParser ff_h264_parser;
+extern const AVCodecParser ff_hevc_parser;
+extern const AVCodecParser ff_ipu_parser;
+extern const AVCodecParser ff_jpeg2000_parser;
+extern const AVCodecParser ff_mjpeg_parser;
+extern const AVCodecParser ff_mlp_parser;
+extern const AVCodecParser ff_mpeg4video_parser;
+extern const AVCodecParser ff_mpegaudio_parser;
+extern const AVCodecParser ff_mpegvideo_parser;
+extern const AVCodecParser ff_opus_parser;
+extern const AVCodecParser ff_png_parser;
+extern const AVCodecParser ff_pnm_parser;
+extern const AVCodecParser ff_rv30_parser;
+extern const AVCodecParser ff_rv40_parser;
+extern const AVCodecParser ff_sbc_parser;
+extern const AVCodecParser ff_sipr_parser;
+extern const AVCodecParser ff_tak_parser;
+extern const AVCodecParser ff_vc1_parser;
+extern const AVCodecParser ff_vorbis_parser;
+extern const AVCodecParser ff_vp3_parser;
+extern const AVCodecParser ff_vp8_parser;
+extern const AVCodecParser ff_vp9_parser;
+extern const AVCodecParser ff_webp_parser;
+extern const AVCodecParser ff_xbm_parser;
+extern const AVCodecParser ff_xma_parser;
#include "libavcodec/parser_list.c"
diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c
index 9ec8551a1b..314de1b436 100644
--- a/libavcodec/png_parser.c
+++ b/libavcodec/png_parser.c
@@ -110,7 +110,7 @@ flush:
return next;
}
-AVCodecParser ff_png_parser = {
+const AVCodecParser ff_png_parser = {
.codec_ids = { AV_CODEC_ID_PNG },
.priv_data_size = sizeof(PNGParseContext),
.parser_parse = png_parse,
diff --git a/libavcodec/pnm_parser.c b/libavcodec/pnm_parser.c
index a822c17a2e..f8eb2e7eda 100644
--- a/libavcodec/pnm_parser.c
+++ b/libavcodec/pnm_parser.c
@@ -131,7 +131,7 @@ end:
return next;
}
-AVCodecParser ff_pnm_parser = {
+const AVCodecParser ff_pnm_parser = {
.codec_ids = { AV_CODEC_ID_PGM, AV_CODEC_ID_PGMYUV, AV_CODEC_ID_PPM,
AV_CODEC_ID_PBM, AV_CODEC_ID_PAM },
.priv_data_size = sizeof(PNMParseContext),
diff --git a/libavcodec/rv34_parser.c b/libavcodec/rv34_parser.c
index 765d390550..03469ed0d1 100644
--- a/libavcodec/rv34_parser.c
+++ b/libavcodec/rv34_parser.c
@@ -77,7 +77,7 @@ static int rv34_parse(AVCodecParserContext *s,
}
#if CONFIG_RV30_PARSER
-AVCodecParser ff_rv30_parser = {
+const AVCodecParser ff_rv30_parser = {
.codec_ids = { AV_CODEC_ID_RV30 },
.priv_data_size = sizeof(RV34ParseContext),
.parser_parse = rv34_parse,
@@ -85,7 +85,7 @@ AVCodecParser ff_rv30_parser = {
#endif
#if CONFIG_RV40_PARSER
-AVCodecParser ff_rv40_parser = {
+const AVCodecParser ff_rv40_parser = {
.codec_ids = { AV_CODEC_ID_RV40 },
.priv_data_size = sizeof(RV34ParseContext),
.parser_parse = rv34_parse,
diff --git a/libavcodec/sbc_parser.c b/libavcodec/sbc_parser.c
index 5549b1951c..8bf726b39e 100644
--- a/libavcodec/sbc_parser.c
+++ b/libavcodec/sbc_parser.c
@@ -112,7 +112,7 @@ static int sbc_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_sbc_parser = {
+const AVCodecParser ff_sbc_parser = {
.codec_ids = { AV_CODEC_ID_SBC },
.priv_data_size = sizeof(SBCParseContext),
.parser_parse = sbc_parse,
diff --git a/libavcodec/sipr_parser.c b/libavcodec/sipr_parser.c
index fba25e1028..e01da3c8a8 100644
--- a/libavcodec/sipr_parser.c
+++ b/libavcodec/sipr_parser.c
@@ -66,7 +66,7 @@ static int sipr_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_sipr_parser = {
+const AVCodecParser ff_sipr_parser = {
.codec_ids = { AV_CODEC_ID_SIPR },
.priv_data_size = sizeof(SiprParserContext),
.parser_parse = sipr_parse,
diff --git a/libavcodec/tak_parser.c b/libavcodec/tak_parser.c
index 3604b35443..b9f47db8ac 100644
--- a/libavcodec/tak_parser.c
+++ b/libavcodec/tak_parser.c
@@ -122,7 +122,7 @@ fail:
return buf_size + consumed;
}
-AVCodecParser ff_tak_parser = {
+const AVCodecParser ff_tak_parser = {
.codec_ids = { AV_CODEC_ID_TAK },
.priv_data_size = sizeof(TAKParseContext),
.parser_parse = tak_parse,
diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index 1a9d3c0140..0f17d299e1 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -287,7 +287,7 @@ static av_cold int vc1_parse_init(AVCodecParserContext *s)
return 0;
}
-AVCodecParser ff_vc1_parser = {
+const AVCodecParser ff_vc1_parser = {
.codec_ids = { AV_CODEC_ID_VC1 },
.priv_data_size = sizeof(VC1ParseContext),
.parser_init = vc1_parse_init,
diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c
index 0b2c97cde5..194ae13da3 100644
--- a/libavcodec/vorbis_parser.c
+++ b/libavcodec/vorbis_parser.c
@@ -332,7 +332,7 @@ static void vorbis_parser_close(AVCodecParserContext *ctx)
av_vorbis_parse_free(&s->vp);
}
-AVCodecParser ff_vorbis_parser = {
+const AVCodecParser ff_vorbis_parser = {
.codec_ids = { AV_CODEC_ID_VORBIS },
.priv_data_size = sizeof(VorbisParseContext),
.parser_parse = vorbis_parse,
diff --git a/libavcodec/vp3_parser.c b/libavcodec/vp3_parser.c
index 7ee046c543..1bed43e779 100644
--- a/libavcodec/vp3_parser.c
+++ b/libavcodec/vp3_parser.c
@@ -35,7 +35,7 @@ static int parse(AVCodecParserContext *s,
return buf_size;
}
-AVCodecParser ff_vp3_parser = {
+const AVCodecParser ff_vp3_parser = {
.codec_ids = {
AV_CODEC_ID_THEORA, AV_CODEC_ID_VP3,
AV_CODEC_ID_VP6, AV_CODEC_ID_VP6F, AV_CODEC_ID_VP6A
diff --git a/libavcodec/vp8_parser.c b/libavcodec/vp8_parser.c
index 7ce35e7535..98b752bfb9 100644
--- a/libavcodec/vp8_parser.c
+++ b/libavcodec/vp8_parser.c
@@ -73,7 +73,7 @@ static int parse(AVCodecParserContext *s,
return buf_size;
}
-AVCodecParser ff_vp8_parser = {
+const AVCodecParser ff_vp8_parser = {
.codec_ids = { AV_CODEC_ID_VP8 },
.parser_parse = parse,
};
diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
index c957a75667..ffcb93505f 100644
--- a/libavcodec/vp9_parser.c
+++ b/libavcodec/vp9_parser.c
@@ -64,7 +64,7 @@ static int parse(AVCodecParserContext *ctx,
return size;
}
-AVCodecParser ff_vp9_parser = {
+const AVCodecParser ff_vp9_parser = {
.codec_ids = { AV_CODEC_ID_VP9 },
.parser_parse = parse,
};
diff --git a/libavcodec/webp_parser.c b/libavcodec/webp_parser.c
index fdb7c38350..bd5f94dac5 100644
--- a/libavcodec/webp_parser.c
+++ b/libavcodec/webp_parser.c
@@ -104,7 +104,7 @@ flush:
return next;
}
-AVCodecParser ff_webp_parser = {
+const AVCodecParser ff_webp_parser = {
.codec_ids = { AV_CODEC_ID_WEBP },
.priv_data_size = sizeof(WebPParseContext),
.parser_parse = webp_parse,
diff --git a/libavcodec/xbm_parser.c b/libavcodec/xbm_parser.c
index 6b0eea69ad..28aae49ee3 100644
--- a/libavcodec/xbm_parser.c
+++ b/libavcodec/xbm_parser.c
@@ -97,7 +97,7 @@ static int xbm_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-AVCodecParser ff_xbm_parser = {
+const AVCodecParser ff_xbm_parser = {
.codec_ids = { AV_CODEC_ID_XBM },
.priv_data_size = sizeof(XBMParseContext),
.parser_init = xbm_init,
diff --git a/libavcodec/xma_parser.c b/libavcodec/xma_parser.c
index 0513679272..dc8a197c67 100644
--- a/libavcodec/xma_parser.c
+++ b/libavcodec/xma_parser.c
@@ -55,7 +55,7 @@ static int xma_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return buf_size;
}
-AVCodecParser ff_xma_parser = {
+const AVCodecParser ff_xma_parser = {
.codec_ids = { AV_CODEC_ID_XMA2 },
.priv_data_size = sizeof(XMAParserContext),
.parser_parse = xma_parse,
More information about the ffmpeg-cvslog
mailing list