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/bit.c | |
parent | 37f0dbbc3911d315e12478535dcc7ea138d000ad (diff) |
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/bit.c')
-rw-r--r-- | libavformat/bit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c index cd088b87ff..5c3eb31c57 100644 --- a/libavformat/bit.c +++ b/libavformat/bit.c @@ -125,7 +125,7 @@ const FFInputFormat ff_bit_demuxer = { #endif #if CONFIG_BIT_MUXER -static int write_header(AVFormatContext *s) +static av_cold int init(AVFormatContext *s) { AVCodecParameters *par = s->streams[0]->codecpar; @@ -170,7 +170,7 @@ const FFOutputFormat ff_bit_muxer = { .p.subtitle_codec = AV_CODEC_ID_NONE, .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH | FF_OFMT_FLAG_ONLY_DEFAULT_CODECS, - .write_header = write_header, + .init = init, .write_packet = write_packet, }; #endif |