1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec: Constify all the AVCodecParsers

Possible now that the next pointer no longer exists.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2021-03-07 00:20:43 +01:00 committed by James Almer
parent cb3ac722f4
commit e625ae6092
52 changed files with 104 additions and 104 deletions

View File

@ -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 }, .codec_ids = { AV_CODEC_ID_AAC },
.priv_data_size = sizeof(AACAC3ParseContext), .priv_data_size = sizeof(AACAC3ParseContext),
.parser_init = aac_parse_init, .parser_init = aac_parse_init,

View File

@ -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 }, .codec_ids = { AV_CODEC_ID_AC3, AV_CODEC_ID_EAC3 },
.priv_data_size = sizeof(AACAC3ParseContext), .priv_data_size = sizeof(AACAC3ParseContext),
.parser_init = ac3_parse_init, .parser_init = ac3_parse_init,

View File

@ -88,7 +88,7 @@ static int adx_parse(AVCodecParserContext *s1,
return next; return next;
} }
AVCodecParser ff_adx_parser = { const AVCodecParser ff_adx_parser = {
.codec_ids = { AV_CODEC_ID_ADPCM_ADX }, .codec_ids = { AV_CODEC_ID_ADPCM_ADX },
.priv_data_size = sizeof(ADXParseContext), .priv_data_size = sizeof(ADXParseContext),
.parser_parse = adx_parse, .parser_parse = adx_parse,

View File

@ -227,7 +227,7 @@ static int av1_parser_split(AVCodecContext *avctx,
return 0; return 0;
} }
AVCodecParser ff_av1_parser = { const AVCodecParser ff_av1_parser = {
.codec_ids = { AV_CODEC_ID_AV1 }, .codec_ids = { AV_CODEC_ID_AV1 },
.priv_data_size = sizeof(AV1ParseContext), .priv_data_size = sizeof(AV1ParseContext),
.parser_init = av1_parser_init, .parser_init = av1_parser_init,

View File

@ -86,7 +86,7 @@ static int avs2_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_avs2_parser = { const AVCodecParser ff_avs2_parser = {
.codec_ids = { AV_CODEC_ID_AVS2 }, .codec_ids = { AV_CODEC_ID_AVS2 },
.priv_data_size = sizeof(ParseContext), .priv_data_size = sizeof(ParseContext),
.parser_parse = avs2_parse, .parser_parse = avs2_parse,

View File

@ -170,7 +170,7 @@ static int avs3_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_avs3_parser = { const AVCodecParser ff_avs3_parser = {
.codec_ids = { AV_CODEC_ID_AVS3 }, .codec_ids = { AV_CODEC_ID_AVS3 },
.priv_data_size = sizeof(ParseContext), .priv_data_size = sizeof(ParseContext),
.parser_parse = avs3_parse, .parser_parse = avs3_parse,

View File

@ -105,7 +105,7 @@ flush:
return next; return next;
} }
AVCodecParser ff_bmp_parser = { const AVCodecParser ff_bmp_parser = {
.codec_ids = { AV_CODEC_ID_BMP }, .codec_ids = { AV_CODEC_ID_BMP },
.priv_data_size = sizeof(BMPParseContext), .priv_data_size = sizeof(BMPParseContext),
.parser_parse = bmp_parse, .parser_parse = bmp_parse,

View File

@ -97,7 +97,7 @@ static int cavsvideo_parse(AVCodecParserContext *s,
return next; return next;
} }
AVCodecParser ff_cavsvideo_parser = { const AVCodecParser ff_cavsvideo_parser = {
.codec_ids = { AV_CODEC_ID_CAVS }, .codec_ids = { AV_CODEC_ID_CAVS },
.priv_data_size = sizeof(ParseContext), .priv_data_size = sizeof(ParseContext),
.parser_parse = cavsvideo_parse, .parser_parse = cavsvideo_parse,

View File

@ -53,7 +53,7 @@ static int cook_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return buf_size; return buf_size;
} }
AVCodecParser ff_cook_parser = { const AVCodecParser ff_cook_parser = {
.codec_ids = { AV_CODEC_ID_COOK }, .codec_ids = { AV_CODEC_ID_COOK },
.priv_data_size = sizeof(CookParseContext), .priv_data_size = sizeof(CookParseContext),
.parser_parse = cook_parse, .parser_parse = cook_parse,

View File

@ -97,7 +97,7 @@ static int cri_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_cri_parser = { const AVCodecParser ff_cri_parser = {
.codec_ids = { AV_CODEC_ID_CRI }, .codec_ids = { AV_CODEC_ID_CRI },
.priv_data_size = sizeof(CRIParser), .priv_data_size = sizeof(CRIParser),
.parser_parse = cri_parse, .parser_parse = cri_parse,

View File

@ -343,7 +343,7 @@ static int dca_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_dca_parser = { const AVCodecParser ff_dca_parser = {
.codec_ids = { AV_CODEC_ID_DTS }, .codec_ids = { AV_CODEC_ID_DTS },
.priv_data_size = sizeof(DCAParseContext), .priv_data_size = sizeof(DCAParseContext),
.parser_init = dca_parse_init, .parser_init = dca_parse_init,

View File

@ -273,7 +273,7 @@ static void dirac_parse_close(AVCodecParserContext *s)
av_freep(&pc->buffer); av_freep(&pc->buffer);
} }
AVCodecParser ff_dirac_parser = { const AVCodecParser ff_dirac_parser = {
.codec_ids = { AV_CODEC_ID_DIRAC }, .codec_ids = { AV_CODEC_ID_DIRAC },
.priv_data_size = sizeof(DiracParseContext), .priv_data_size = sizeof(DiracParseContext),
.parser_parse = dirac_parse, .parser_parse = dirac_parse,

View File

@ -138,7 +138,7 @@ static int dnxhd_parse(AVCodecParserContext *s,
return next; return next;
} }
AVCodecParser ff_dnxhd_parser = { const AVCodecParser ff_dnxhd_parser = {
.codec_ids = { AV_CODEC_ID_DNXHD }, .codec_ids = { AV_CODEC_ID_DNXHD },
.priv_data_size = sizeof(DNXHDParserContext), .priv_data_size = sizeof(DNXHDParserContext),
.parser_parse = dnxhd_parse, .parser_parse = dnxhd_parse,

View File

@ -62,7 +62,7 @@ end:
return buf_size; return buf_size;
} }
AVCodecParser ff_dolby_e_parser = { const AVCodecParser ff_dolby_e_parser = {
.codec_ids = { AV_CODEC_ID_DOLBY_E }, .codec_ids = { AV_CODEC_ID_DOLBY_E },
.priv_data_size = sizeof(DBEParseContext), .priv_data_size = sizeof(DBEParseContext),
.parser_parse = dolby_e_parse, .parser_parse = dolby_e_parse,

View File

@ -108,7 +108,7 @@ flush:
return next; return next;
} }
AVCodecParser ff_dpx_parser = { const AVCodecParser ff_dpx_parser = {
.codec_ids = { AV_CODEC_ID_DPX }, .codec_ids = { AV_CODEC_ID_DPX },
.priv_data_size = sizeof(DPXParseContext), .priv_data_size = sizeof(DPXParseContext),
.parser_parse = dpx_parse, .parser_parse = dpx_parse,

View File

@ -40,7 +40,7 @@ static int dvaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return buf_size; return buf_size;
} }
AVCodecParser ff_dvaudio_parser = { const AVCodecParser ff_dvaudio_parser = {
.codec_ids = { AV_CODEC_ID_DVAUDIO }, .codec_ids = { AV_CODEC_ID_DVAUDIO },
.parser_parse = dvaudio_parse, .parser_parse = dvaudio_parse,
}; };

View File

@ -165,7 +165,7 @@ static int dvbsub_parse(AVCodecParserContext *s,
return buf_size; return buf_size;
} }
AVCodecParser ff_dvbsub_parser = { const AVCodecParser ff_dvbsub_parser = {
.codec_ids = { AV_CODEC_ID_DVB_SUBTITLE }, .codec_ids = { AV_CODEC_ID_DVB_SUBTITLE },
.priv_data_size = sizeof(DVBSubParseContext), .priv_data_size = sizeof(DVBSubParseContext),
.parser_parse = dvbsub_parse, .parser_parse = dvbsub_parse,

View File

@ -107,7 +107,7 @@ static int dvd_nav_parse(AVCodecParserContext *s,
return buf_size; return buf_size;
} }
AVCodecParser ff_dvd_nav_parser = { const AVCodecParser ff_dvd_nav_parser = {
.codec_ids = { AV_CODEC_ID_DVD_NAV }, .codec_ids = { AV_CODEC_ID_DVD_NAV },
.priv_data_size = sizeof(DVDNavParseContext), .priv_data_size = sizeof(DVDNavParseContext),
.parser_init = dvd_nav_parse_init, .parser_init = dvd_nav_parse_init,

View File

@ -84,7 +84,7 @@ static av_cold void dvdsub_parse_close(AVCodecParserContext *s)
av_freep(&pc->packet); av_freep(&pc->packet);
} }
AVCodecParser ff_dvdsub_parser = { const AVCodecParser ff_dvdsub_parser = {
.codec_ids = { AV_CODEC_ID_DVD_SUBTITLE }, .codec_ids = { AV_CODEC_ID_DVD_SUBTITLE },
.priv_data_size = sizeof(DVDSubParseContext), .priv_data_size = sizeof(DVDSubParseContext),
.parser_parse = dvdsub_parse, .parser_parse = dvdsub_parse,

View File

@ -742,7 +742,7 @@ static void flac_parse_close(AVCodecParserContext *c)
av_freep(&fpc->wrap_buf); av_freep(&fpc->wrap_buf);
} }
AVCodecParser ff_flac_parser = { const AVCodecParser ff_flac_parser = {
.codec_ids = { AV_CODEC_ID_FLAC }, .codec_ids = { AV_CODEC_ID_FLAC },
.priv_data_size = sizeof(FLACParseContext), .priv_data_size = sizeof(FLACParseContext),
.parser_init = flac_parse_init, .parser_init = flac_parse_init,

View File

@ -52,7 +52,7 @@ static int g723_1_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_g723_1_parser = { const AVCodecParser ff_g723_1_parser = {
.codec_ids = { AV_CODEC_ID_G723_1 }, .codec_ids = { AV_CODEC_ID_G723_1 },
.priv_data_size = sizeof(G723_1ParseContext), .priv_data_size = sizeof(G723_1ParseContext),
.parser_parse = g723_1_parse, .parser_parse = g723_1_parse,

View File

@ -82,7 +82,7 @@ static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_g729_parser = { const AVCodecParser ff_g729_parser = {
.codec_ids = { AV_CODEC_ID_G729, AV_CODEC_ID_ACELP_KELVIN }, .codec_ids = { AV_CODEC_ID_G729, AV_CODEC_ID_ACELP_KELVIN },
.priv_data_size = sizeof(G729ParseContext), .priv_data_size = sizeof(G729ParseContext),
.parser_parse = g729_parse, .parser_parse = g729_parse,

View File

@ -180,7 +180,7 @@ static int gif_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_gif_parser = { const AVCodecParser ff_gif_parser = {
.codec_ids = { AV_CODEC_ID_GIF }, .codec_ids = { AV_CODEC_ID_GIF },
.priv_data_size = sizeof(GIFParseContext), .priv_data_size = sizeof(GIFParseContext),
.parser_parse = gif_parse, .parser_parse = gif_parse,

View File

@ -83,7 +83,7 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_gsm_parser = { const AVCodecParser ff_gsm_parser = {
.codec_ids = { AV_CODEC_ID_GSM, AV_CODEC_ID_GSM_MS }, .codec_ids = { AV_CODEC_ID_GSM, AV_CODEC_ID_GSM_MS },
.priv_data_size = sizeof(GSMParseContext), .priv_data_size = sizeof(GSMParseContext),
.parser_parse = gsm_parse, .parser_parse = gsm_parse,

View File

@ -86,7 +86,7 @@ static int h261_parse(AVCodecParserContext *s,
return next; return next;
} }
AVCodecParser ff_h261_parser = { const AVCodecParser ff_h261_parser = {
.codec_ids = { AV_CODEC_ID_H261 }, .codec_ids = { AV_CODEC_ID_H261 },
.priv_data_size = sizeof(ParseContext), .priv_data_size = sizeof(ParseContext),
.parser_parse = h261_parse, .parser_parse = h261_parse,

View File

@ -87,7 +87,7 @@ static int h263_parse(AVCodecParserContext *s,
return next; return next;
} }
AVCodecParser ff_h263_parser = { const AVCodecParser ff_h263_parser = {
.codec_ids = { AV_CODEC_ID_H263 }, .codec_ids = { AV_CODEC_ID_H263 },
.priv_data_size = sizeof(ParseContext), .priv_data_size = sizeof(ParseContext),
.parser_parse = h263_parse, .parser_parse = h263_parse,

View File

@ -702,7 +702,7 @@ static av_cold int init(AVCodecParserContext *s)
return 0; return 0;
} }
AVCodecParser ff_h264_parser = { const AVCodecParser ff_h264_parser = {
.codec_ids = { AV_CODEC_ID_H264 }, .codec_ids = { AV_CODEC_ID_H264 },
.priv_data_size = sizeof(H264ParseContext), .priv_data_size = sizeof(H264ParseContext),
.parser_init = init, .parser_init = init,

View File

@ -380,7 +380,7 @@ static void hevc_parser_close(AVCodecParserContext *s)
av_freep(&ctx->pc.buffer); av_freep(&ctx->pc.buffer);
} }
AVCodecParser ff_hevc_parser = { const AVCodecParser ff_hevc_parser = {
.codec_ids = { AV_CODEC_ID_HEVC }, .codec_ids = { AV_CODEC_ID_HEVC },
.priv_data_size = sizeof(HEVCParserContext), .priv_data_size = sizeof(HEVCParserContext),
.parser_parse = hevc_parse, .parser_parse = hevc_parse,

View File

@ -69,7 +69,7 @@ static int ipu_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_ipu_parser = { const AVCodecParser ff_ipu_parser = {
.codec_ids = { AV_CODEC_ID_IPU }, .codec_ids = { AV_CODEC_ID_IPU },
.priv_data_size = sizeof(IPUParseContext), .priv_data_size = sizeof(IPUParseContext),
.parser_parse = ipu_parse, .parser_parse = ipu_parse,

View File

@ -182,7 +182,7 @@ static int jpeg2000_parse(AVCodecParserContext *s,
return next; return next;
} }
AVCodecParser ff_jpeg2000_parser = { const AVCodecParser ff_jpeg2000_parser = {
.codec_ids = { AV_CODEC_ID_JPEG2000 }, .codec_ids = { AV_CODEC_ID_JPEG2000 },
.priv_data_size = sizeof(JPEG2000ParserContext), .priv_data_size = sizeof(JPEG2000ParserContext),
.parser_parse = jpeg2000_parse, .parser_parse = jpeg2000_parse,

View File

@ -104,7 +104,7 @@ static int latm_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_aac_latm_parser = { const AVCodecParser ff_aac_latm_parser = {
.codec_ids = { AV_CODEC_ID_AAC_LATM }, .codec_ids = { AV_CODEC_ID_AAC_LATM },
.priv_data_size = sizeof(LATMParseContext), .priv_data_size = sizeof(LATMParseContext),
.parser_parse = latm_parse, .parser_parse = latm_parse,

View File

@ -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 }, .codec_ids = { AV_CODEC_ID_MJPEG, AV_CODEC_ID_JPEGLS },
.priv_data_size = sizeof(MJPEGParserContext), .priv_data_size = sizeof(MJPEGParserContext),
.parser_parse = jpeg_parse, .parser_parse = jpeg_parse,

View File

@ -208,7 +208,7 @@ lost_sync:
return 1; return 1;
} }
AVCodecParser ff_mlp_parser = { const AVCodecParser ff_mlp_parser = {
.codec_ids = { AV_CODEC_ID_MLP, AV_CODEC_ID_TRUEHD }, .codec_ids = { AV_CODEC_ID_MLP, AV_CODEC_ID_TRUEHD },
.priv_data_size = sizeof(MLPParseContext), .priv_data_size = sizeof(MLPParseContext),
.parser_init = mlp_init, .parser_init = mlp_init,

View File

@ -153,7 +153,7 @@ static int mpeg4video_parse(AVCodecParserContext *s,
return next; return next;
} }
AVCodecParser ff_mpeg4video_parser = { const AVCodecParser ff_mpeg4video_parser = {
.codec_ids = { AV_CODEC_ID_MPEG4 }, .codec_ids = { AV_CODEC_ID_MPEG4 },
.priv_data_size = sizeof(struct Mp4vParseContext), .priv_data_size = sizeof(struct Mp4vParseContext),
.parser_init = mpeg4video_parse_init, .parser_init = mpeg4video_parse_init,

View File

@ -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 }, .codec_ids = { AV_CODEC_ID_MP1, AV_CODEC_ID_MP2, AV_CODEC_ID_MP3, AV_CODEC_ID_MP3ADU },
.priv_data_size = sizeof(MpegAudioParseContext), .priv_data_size = sizeof(MpegAudioParseContext),
.parser_parse = mpegaudio_parse, .parser_parse = mpegaudio_parse,

View File

@ -236,7 +236,7 @@ static int mpegvideo_parse_init(AVCodecParserContext *s)
return 0; return 0;
} }
AVCodecParser ff_mpegvideo_parser = { const AVCodecParser ff_mpegvideo_parser = {
.codec_ids = { AV_CODEC_ID_MPEG1VIDEO, AV_CODEC_ID_MPEG2VIDEO }, .codec_ids = { AV_CODEC_ID_MPEG1VIDEO, AV_CODEC_ID_MPEG2VIDEO },
.priv_data_size = sizeof(struct MpvParseContext), .priv_data_size = sizeof(struct MpvParseContext),
.parser_init = mpegvideo_parse_init, .parser_init = mpegvideo_parse_init,

View File

@ -190,7 +190,7 @@ static int opus_parse(AVCodecParserContext *ctx, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_opus_parser = { const AVCodecParser ff_opus_parser = {
.codec_ids = { AV_CODEC_ID_OPUS }, .codec_ids = { AV_CODEC_ID_OPUS },
.priv_data_size = sizeof(OpusParseContext), .priv_data_size = sizeof(OpusParseContext),
.parser_parse = opus_parse, .parser_parse = opus_parse,

View File

@ -20,58 +20,58 @@
#include "avcodec.h" #include "avcodec.h"
extern AVCodecParser ff_aac_parser; extern const AVCodecParser ff_aac_parser;
extern AVCodecParser ff_aac_latm_parser; extern const AVCodecParser ff_aac_latm_parser;
extern AVCodecParser ff_ac3_parser; extern const AVCodecParser ff_ac3_parser;
extern AVCodecParser ff_adx_parser; extern const AVCodecParser ff_adx_parser;
extern AVCodecParser ff_av1_parser; extern const AVCodecParser ff_av1_parser;
extern AVCodecParser ff_avs2_parser; extern const AVCodecParser ff_avs2_parser;
extern AVCodecParser ff_avs3_parser; extern const AVCodecParser ff_avs3_parser;
extern AVCodecParser ff_bmp_parser; extern const AVCodecParser ff_bmp_parser;
extern AVCodecParser ff_cavsvideo_parser; extern const AVCodecParser ff_cavsvideo_parser;
extern AVCodecParser ff_cook_parser; extern const AVCodecParser ff_cook_parser;
extern AVCodecParser ff_cri_parser; extern const AVCodecParser ff_cri_parser;
extern AVCodecParser ff_dca_parser; extern const AVCodecParser ff_dca_parser;
extern AVCodecParser ff_dirac_parser; extern const AVCodecParser ff_dirac_parser;
extern AVCodecParser ff_dnxhd_parser; extern const AVCodecParser ff_dnxhd_parser;
extern AVCodecParser ff_dolby_e_parser; extern const AVCodecParser ff_dolby_e_parser;
extern AVCodecParser ff_dpx_parser; extern const AVCodecParser ff_dpx_parser;
extern AVCodecParser ff_dvaudio_parser; extern const AVCodecParser ff_dvaudio_parser;
extern AVCodecParser ff_dvbsub_parser; extern const AVCodecParser ff_dvbsub_parser;
extern AVCodecParser ff_dvdsub_parser; extern const AVCodecParser ff_dvdsub_parser;
extern AVCodecParser ff_dvd_nav_parser; extern const AVCodecParser ff_dvd_nav_parser;
extern AVCodecParser ff_flac_parser; extern const AVCodecParser ff_flac_parser;
extern AVCodecParser ff_g723_1_parser; extern const AVCodecParser ff_g723_1_parser;
extern AVCodecParser ff_g729_parser; extern const AVCodecParser ff_g729_parser;
extern AVCodecParser ff_gif_parser; extern const AVCodecParser ff_gif_parser;
extern AVCodecParser ff_gsm_parser; extern const AVCodecParser ff_gsm_parser;
extern AVCodecParser ff_h261_parser; extern const AVCodecParser ff_h261_parser;
extern AVCodecParser ff_h263_parser; extern const AVCodecParser ff_h263_parser;
extern AVCodecParser ff_h264_parser; extern const AVCodecParser ff_h264_parser;
extern AVCodecParser ff_hevc_parser; extern const AVCodecParser ff_hevc_parser;
extern AVCodecParser ff_ipu_parser; extern const AVCodecParser ff_ipu_parser;
extern AVCodecParser ff_jpeg2000_parser; extern const AVCodecParser ff_jpeg2000_parser;
extern AVCodecParser ff_mjpeg_parser; extern const AVCodecParser ff_mjpeg_parser;
extern AVCodecParser ff_mlp_parser; extern const AVCodecParser ff_mlp_parser;
extern AVCodecParser ff_mpeg4video_parser; extern const AVCodecParser ff_mpeg4video_parser;
extern AVCodecParser ff_mpegaudio_parser; extern const AVCodecParser ff_mpegaudio_parser;
extern AVCodecParser ff_mpegvideo_parser; extern const AVCodecParser ff_mpegvideo_parser;
extern AVCodecParser ff_opus_parser; extern const AVCodecParser ff_opus_parser;
extern AVCodecParser ff_png_parser; extern const AVCodecParser ff_png_parser;
extern AVCodecParser ff_pnm_parser; extern const AVCodecParser ff_pnm_parser;
extern AVCodecParser ff_rv30_parser; extern const AVCodecParser ff_rv30_parser;
extern AVCodecParser ff_rv40_parser; extern const AVCodecParser ff_rv40_parser;
extern AVCodecParser ff_sbc_parser; extern const AVCodecParser ff_sbc_parser;
extern AVCodecParser ff_sipr_parser; extern const AVCodecParser ff_sipr_parser;
extern AVCodecParser ff_tak_parser; extern const AVCodecParser ff_tak_parser;
extern AVCodecParser ff_vc1_parser; extern const AVCodecParser ff_vc1_parser;
extern AVCodecParser ff_vorbis_parser; extern const AVCodecParser ff_vorbis_parser;
extern AVCodecParser ff_vp3_parser; extern const AVCodecParser ff_vp3_parser;
extern AVCodecParser ff_vp8_parser; extern const AVCodecParser ff_vp8_parser;
extern AVCodecParser ff_vp9_parser; extern const AVCodecParser ff_vp9_parser;
extern AVCodecParser ff_webp_parser; extern const AVCodecParser ff_webp_parser;
extern AVCodecParser ff_xbm_parser; extern const AVCodecParser ff_xbm_parser;
extern AVCodecParser ff_xma_parser; extern const AVCodecParser ff_xma_parser;
#include "libavcodec/parser_list.c" #include "libavcodec/parser_list.c"

View File

@ -110,7 +110,7 @@ flush:
return next; return next;
} }
AVCodecParser ff_png_parser = { const AVCodecParser ff_png_parser = {
.codec_ids = { AV_CODEC_ID_PNG }, .codec_ids = { AV_CODEC_ID_PNG },
.priv_data_size = sizeof(PNGParseContext), .priv_data_size = sizeof(PNGParseContext),
.parser_parse = png_parse, .parser_parse = png_parse,

View File

@ -131,7 +131,7 @@ end:
return next; 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, .codec_ids = { AV_CODEC_ID_PGM, AV_CODEC_ID_PGMYUV, AV_CODEC_ID_PPM,
AV_CODEC_ID_PBM, AV_CODEC_ID_PAM }, AV_CODEC_ID_PBM, AV_CODEC_ID_PAM },
.priv_data_size = sizeof(PNMParseContext), .priv_data_size = sizeof(PNMParseContext),

View File

@ -77,7 +77,7 @@ static int rv34_parse(AVCodecParserContext *s,
} }
#if CONFIG_RV30_PARSER #if CONFIG_RV30_PARSER
AVCodecParser ff_rv30_parser = { const AVCodecParser ff_rv30_parser = {
.codec_ids = { AV_CODEC_ID_RV30 }, .codec_ids = { AV_CODEC_ID_RV30 },
.priv_data_size = sizeof(RV34ParseContext), .priv_data_size = sizeof(RV34ParseContext),
.parser_parse = rv34_parse, .parser_parse = rv34_parse,
@ -85,7 +85,7 @@ AVCodecParser ff_rv30_parser = {
#endif #endif
#if CONFIG_RV40_PARSER #if CONFIG_RV40_PARSER
AVCodecParser ff_rv40_parser = { const AVCodecParser ff_rv40_parser = {
.codec_ids = { AV_CODEC_ID_RV40 }, .codec_ids = { AV_CODEC_ID_RV40 },
.priv_data_size = sizeof(RV34ParseContext), .priv_data_size = sizeof(RV34ParseContext),
.parser_parse = rv34_parse, .parser_parse = rv34_parse,

View File

@ -112,7 +112,7 @@ static int sbc_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_sbc_parser = { const AVCodecParser ff_sbc_parser = {
.codec_ids = { AV_CODEC_ID_SBC }, .codec_ids = { AV_CODEC_ID_SBC },
.priv_data_size = sizeof(SBCParseContext), .priv_data_size = sizeof(SBCParseContext),
.parser_parse = sbc_parse, .parser_parse = sbc_parse,

View File

@ -66,7 +66,7 @@ static int sipr_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_sipr_parser = { const AVCodecParser ff_sipr_parser = {
.codec_ids = { AV_CODEC_ID_SIPR }, .codec_ids = { AV_CODEC_ID_SIPR },
.priv_data_size = sizeof(SiprParserContext), .priv_data_size = sizeof(SiprParserContext),
.parser_parse = sipr_parse, .parser_parse = sipr_parse,

View File

@ -122,7 +122,7 @@ fail:
return buf_size + consumed; return buf_size + consumed;
} }
AVCodecParser ff_tak_parser = { const AVCodecParser ff_tak_parser = {
.codec_ids = { AV_CODEC_ID_TAK }, .codec_ids = { AV_CODEC_ID_TAK },
.priv_data_size = sizeof(TAKParseContext), .priv_data_size = sizeof(TAKParseContext),
.parser_parse = tak_parse, .parser_parse = tak_parse,

View File

@ -287,7 +287,7 @@ static av_cold int vc1_parse_init(AVCodecParserContext *s)
return 0; return 0;
} }
AVCodecParser ff_vc1_parser = { const AVCodecParser ff_vc1_parser = {
.codec_ids = { AV_CODEC_ID_VC1 }, .codec_ids = { AV_CODEC_ID_VC1 },
.priv_data_size = sizeof(VC1ParseContext), .priv_data_size = sizeof(VC1ParseContext),
.parser_init = vc1_parse_init, .parser_init = vc1_parse_init,

View File

@ -332,7 +332,7 @@ static void vorbis_parser_close(AVCodecParserContext *ctx)
av_vorbis_parse_free(&s->vp); av_vorbis_parse_free(&s->vp);
} }
AVCodecParser ff_vorbis_parser = { const AVCodecParser ff_vorbis_parser = {
.codec_ids = { AV_CODEC_ID_VORBIS }, .codec_ids = { AV_CODEC_ID_VORBIS },
.priv_data_size = sizeof(VorbisParseContext), .priv_data_size = sizeof(VorbisParseContext),
.parser_parse = vorbis_parse, .parser_parse = vorbis_parse,

View File

@ -35,7 +35,7 @@ static int parse(AVCodecParserContext *s,
return buf_size; return buf_size;
} }
AVCodecParser ff_vp3_parser = { const AVCodecParser ff_vp3_parser = {
.codec_ids = { .codec_ids = {
AV_CODEC_ID_THEORA, AV_CODEC_ID_VP3, AV_CODEC_ID_THEORA, AV_CODEC_ID_VP3,
AV_CODEC_ID_VP6, AV_CODEC_ID_VP6F, AV_CODEC_ID_VP6A AV_CODEC_ID_VP6, AV_CODEC_ID_VP6F, AV_CODEC_ID_VP6A

View File

@ -73,7 +73,7 @@ static int parse(AVCodecParserContext *s,
return buf_size; return buf_size;
} }
AVCodecParser ff_vp8_parser = { const AVCodecParser ff_vp8_parser = {
.codec_ids = { AV_CODEC_ID_VP8 }, .codec_ids = { AV_CODEC_ID_VP8 },
.parser_parse = parse, .parser_parse = parse,
}; };

View File

@ -64,7 +64,7 @@ static int parse(AVCodecParserContext *ctx,
return size; return size;
} }
AVCodecParser ff_vp9_parser = { const AVCodecParser ff_vp9_parser = {
.codec_ids = { AV_CODEC_ID_VP9 }, .codec_ids = { AV_CODEC_ID_VP9 },
.parser_parse = parse, .parser_parse = parse,
}; };

View File

@ -104,7 +104,7 @@ flush:
return next; return next;
} }
AVCodecParser ff_webp_parser = { const AVCodecParser ff_webp_parser = {
.codec_ids = { AV_CODEC_ID_WEBP }, .codec_ids = { AV_CODEC_ID_WEBP },
.priv_data_size = sizeof(WebPParseContext), .priv_data_size = sizeof(WebPParseContext),
.parser_parse = webp_parse, .parser_parse = webp_parse,

View File

@ -97,7 +97,7 @@ static int xbm_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next; return next;
} }
AVCodecParser ff_xbm_parser = { const AVCodecParser ff_xbm_parser = {
.codec_ids = { AV_CODEC_ID_XBM }, .codec_ids = { AV_CODEC_ID_XBM },
.priv_data_size = sizeof(XBMParseContext), .priv_data_size = sizeof(XBMParseContext),
.parser_init = xbm_init, .parser_init = xbm_init,

View File

@ -55,7 +55,7 @@ static int xma_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
return buf_size; return buf_size;
} }
AVCodecParser ff_xma_parser = { const AVCodecParser ff_xma_parser = {
.codec_ids = { AV_CODEC_ID_XMA2 }, .codec_ids = { AV_CODEC_ID_XMA2 },
.priv_data_size = sizeof(XMAParserContext), .priv_data_size = sizeof(XMAParserContext),
.parser_parse = xma_parse, .parser_parse = xma_parse,