diff mbox series

[FFmpeg-devel,2/2] avformat/wvenc: Make init function out of write_header

Message ID AM7PR03MB666037F18667571169242EF38F799@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 16b1df7541f81512b7869525c8ca596e24a49eae
Headers show
Series [FFmpeg-devel,1/2] avformat/crcenc: Make init function out of write_header | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 18, 2021, 10:59 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/wvenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/wvenc.c b/libavformat/wvenc.c
index 9a42f71440..0dca2f7996 100644
--- a/libavformat/wvenc.c
+++ b/libavformat/wvenc.c
@@ -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) {
@@ -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,