diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-18 11:56:19 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-20 14:29:01 +0100 |
commit | ba27e248cf5a817e13e4f22f08f6dd8a23da536c (patch) | |
tree | 6fce4c1ecb9d98d5d372a7b6a1a51a718d1596c0 | |
parent | 631e31773b10d39067b5ab779c7e767350d895e8 (diff) | |
download | ffmpeg-ba27e248cf5a817e13e4f22f08f6dd8a23da536c.tar.gz |
avformat/crcenc: Make init function out of write_header
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/crcenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/crcenc.c b/libavformat/crcenc.c index c58fbd6c88..9f40dd4ec0 100644 --- a/libavformat/crcenc.c +++ b/libavformat/crcenc.c @@ -28,7 +28,7 @@ typedef struct CRCState { uint32_t crcval; } CRCState; -static int crc_write_header(struct AVFormatContext *s) +static int crc_init(struct AVFormatContext *s) { CRCState *crc = s->priv_data; @@ -60,7 +60,7 @@ const AVOutputFormat ff_crc_muxer = { .priv_data_size = sizeof(CRCState), .audio_codec = AV_CODEC_ID_PCM_S16LE, .video_codec = AV_CODEC_ID_RAWVIDEO, - .write_header = crc_write_header, + .init = crc_init, .write_packet = crc_write_packet, .write_trailer = crc_write_trailer, .flags = AVFMT_NOTIMESTAMPS, |