avformat/webpenc: Use init instead of write_header function

webp_write_header() didn't write anything.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2021-03-18 22:15:36 +01:00
parent 0519a32a64
commit 484a322f0a

View File

@ -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,