diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-20 00:51:30 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-22 23:57:20 +0100 |
commit | 073251316e1b0e4174a5aea41e8a3ce25590b165 (patch) | |
tree | d7617ef6bccda28597f76f999ce8a3a82d1cb87a /libavformat/supenc.c | |
parent | 37f0dbbc3911d315e12478535dcc7ea138d000ad (diff) | |
download | ffmpeg-073251316e1b0e4174a5aea41e8a3ce25590b165.tar.gz |
avformat: Make init function out of write_header functions if possible
Also mark them as av_cold while just at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/supenc.c')
-rw-r--r-- | libavformat/supenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/supenc.c b/libavformat/supenc.c index 9d5ca51894..ebdfc7c939 100644 --- a/libavformat/supenc.c +++ b/libavformat/supenc.c @@ -72,7 +72,7 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt) return 0; } -static int sup_write_header(AVFormatContext *s) +static av_cold int sup_init(AVFormatContext *s) { avpriv_set_pts_info(s->streams[0], 32, 1, 90000); @@ -89,6 +89,6 @@ const FFOutputFormat ff_sup_muxer = { .p.subtitle_codec = AV_CODEC_ID_HDMV_PGS_SUBTITLE, .p.flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT, .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH, - .write_header = sup_write_header, + .init = sup_init, .write_packet = sup_write_packet, }; |