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/mpegts.c | |
parent | d92f38c179591a608390ffa9fee59c309142e79d (diff) |
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/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index f947e2cbb1..9092dbce72 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -266,7 +266,7 @@ typedef struct PESContext { int merged_st; } PESContext; -extern AVInputFormat ff_mpegts_demuxer; +extern const AVInputFormat ff_mpegts_demuxer; static struct Program * get_program(MpegTSContext *ts, unsigned int programid) { @@ -3389,7 +3389,7 @@ void avpriv_mpegts_parse_close(MpegTSContext *ts) av_free(ts); } -AVInputFormat ff_mpegts_demuxer = { +const AVInputFormat ff_mpegts_demuxer = { .name = "mpegts", .long_name = NULL_IF_CONFIG_SMALL("MPEG-TS (MPEG-2 Transport Stream)"), .priv_data_size = sizeof(MpegTSContext), @@ -3402,7 +3402,7 @@ AVInputFormat ff_mpegts_demuxer = { .priv_class = &mpegts_class, }; -AVInputFormat ff_mpegtsraw_demuxer = { +const AVInputFormat ff_mpegtsraw_demuxer = { .name = "mpegtsraw", .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-TS (MPEG-2 Transport Stream)"), .priv_data_size = sizeof(MpegTSContext), |