Skip to content

Commit

Permalink
avformat/crcenc: Make init function out of write_header
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Rheinhardt <[email protected]>
  • Loading branch information
mkver committed Dec 20, 2021
1 parent 631e317 commit ba27e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavformat/crcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ba27e24

Please sign in to comment.