diff mbox series

[FFmpeg-devel,14/18] avformat/webpenc: Use init instead of write_header function

Message ID 20210319055904.2264501-14-andreas.rheinhardt@gmail.com
State Accepted
Commit 484a322f0a01d50175a5819b5f5925891dd45240
Headers show
Series [FFmpeg-devel,01/18] libavformat/utils: Fix indentation | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt March 19, 2021, 5:59 a.m. UTC
webp_write_header() didn't write anything.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/webpenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c
index 9fb472257d..8c32ff66df 100644
--- a/libavformat/webpenc.c
+++ b/libavformat/webpenc.c
@@ -33,7 +33,7 @@  typedef struct WebpContext{
     int using_webp_anim_encoder;
 } WebpContext;
 
-static int webp_write_header(AVFormatContext *s)
+static int webp_init(AVFormatContext *s)
 {
     AVStream *st;
 
@@ -210,7 +210,7 @@  AVOutputFormat ff_webp_muxer = {
     .extensions     = "webp",
     .priv_data_size = sizeof(WebpContext),
     .video_codec    = AV_CODEC_ID_WEBP,
-    .write_header   = webp_write_header,
+    .init           = webp_init,
     .write_packet   = webp_write_packet,
     .write_trailer  = webp_write_trailer,
     .priv_class     = &webp_muxer_class,