diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-19 19:45:24 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 11:48:06 -0300 |
commit | bc70684e74a185d7b80c8b80bdedda659cb581b8 (patch) | |
tree | 2be0c484f566fa11c97e3b51b99353c8d2647ea5 /libavformat/mpegenc.c | |
parent | d92f38c179591a608390ffa9fee59c309142e79d (diff) | |
download | ffmpeg-bc70684e74a185d7b80c8b80bdedda659cb581b8.tar.gz |
avformat: Constify all muxer/demuxers
This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mpegenc.c')
-rw-r--r-- | libavformat/mpegenc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index d37f181eaa..93c4920904 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -83,10 +83,10 @@ typedef struct MpegMuxContext { int preload; } MpegMuxContext; -extern AVOutputFormat ff_mpeg1vcd_muxer; -extern AVOutputFormat ff_mpeg2dvd_muxer; -extern AVOutputFormat ff_mpeg2svcd_muxer; -extern AVOutputFormat ff_mpeg2vob_muxer; +extern const AVOutputFormat ff_mpeg1vcd_muxer; +extern const AVOutputFormat ff_mpeg2dvd_muxer; +extern const AVOutputFormat ff_mpeg2svcd_muxer; +extern const AVOutputFormat ff_mpeg2vob_muxer; static int put_pack_header(AVFormatContext *ctx, uint8_t *buf, int64_t timestamp) @@ -1290,7 +1290,7 @@ static const AVClass flavor ## _class = { \ #if CONFIG_MPEG1SYSTEM_MUXER MPEGENC_CLASS(mpeg) -AVOutputFormat ff_mpeg1system_muxer = { +const AVOutputFormat ff_mpeg1system_muxer = { .name = "mpeg", .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 Systems / MPEG program stream"), .mime_type = "video/mpeg", @@ -1308,7 +1308,7 @@ AVOutputFormat ff_mpeg1system_muxer = { #if CONFIG_MPEG1VCD_MUXER MPEGENC_CLASS(vcd) -AVOutputFormat ff_mpeg1vcd_muxer = { +const AVOutputFormat ff_mpeg1vcd_muxer = { .name = "vcd", .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 Systems / MPEG program stream (VCD)"), .mime_type = "video/mpeg", @@ -1325,7 +1325,7 @@ AVOutputFormat ff_mpeg1vcd_muxer = { #if CONFIG_MPEG2VOB_MUXER MPEGENC_CLASS(vob) -AVOutputFormat ff_mpeg2vob_muxer = { +const AVOutputFormat ff_mpeg2vob_muxer = { .name = "vob", .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS (VOB)"), .mime_type = "video/mpeg", @@ -1344,7 +1344,7 @@ AVOutputFormat ff_mpeg2vob_muxer = { /* Same as mpeg2vob_mux except that the pack size is 2324 */ #if CONFIG_MPEG2SVCD_MUXER MPEGENC_CLASS(svcd) -AVOutputFormat ff_mpeg2svcd_muxer = { +const AVOutputFormat ff_mpeg2svcd_muxer = { .name = "svcd", .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS (SVCD)"), .mime_type = "video/mpeg", @@ -1363,7 +1363,7 @@ AVOutputFormat ff_mpeg2svcd_muxer = { /* Same as mpeg2vob_mux except the 'is_dvd' flag is set to produce NAV pkts */ #if CONFIG_MPEG2DVD_MUXER MPEGENC_CLASS(dvd) -AVOutputFormat ff_mpeg2dvd_muxer = { +const AVOutputFormat ff_mpeg2dvd_muxer = { .name = "dvd", .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS (DVD VOB)"), .mime_type = "video/mpeg", |