Skip to content

Commit

Permalink
avformat/wvenc: 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 ba27e24 commit 16b1df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavformat/wvenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef struct WvMuxContext {
int64_t samples;
} WvMuxContext;

static av_cold int wv_write_header(AVFormatContext *ctx)
static av_cold int wv_init(AVFormatContext *ctx)
{
if (ctx->nb_streams > 1 ||
ctx->streams[0]->codecpar->codec_id != AV_CODEC_ID_WAVPACK) {
Expand Down Expand Up @@ -84,7 +84,7 @@ const AVOutputFormat ff_wv_muxer = {
.priv_data_size = sizeof(WvMuxContext),
.audio_codec = AV_CODEC_ID_WAVPACK,
.video_codec = AV_CODEC_ID_NONE,
.write_header = wv_write_header,
.init = wv_init,
.write_packet = wv_write_packet,
.write_trailer = wv_write_trailer,
.flags = AVFMT_NOTIMESTAMPS,
Expand Down

0 comments on commit 16b1df7

Please sign in to comment.