From: Jun Zhao <barryjz...@tencent.com> fix ffmpeg -h full can't display webvtt muxer
Signed-off-by: Jun Zhao <barryjz...@tencent.com> --- libavformat/webvttenc.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c index 61b7f54..b4e8a61 100644 --- a/libavformat/webvttenc.c +++ b/libavformat/webvttenc.c @@ -26,6 +26,7 @@ #include "avformat.h" #include "internal.h" +#include "libavutil/opt.h" static void webvtt_write_time(AVIOContext *pb, int64_t millisec) { @@ -94,6 +95,17 @@ static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt) return 0; } +static const AVOption options[] = { + { NULL } +}; + +static const AVClass webvtt_muxer_class = { + .class_name = "WebVTT muxer", + .item_name = av_default_item_name, + .option = options, + .version = LIBAVUTIL_VERSION_INT, +}; + AVOutputFormat ff_webvtt_muxer = { .name = "webvtt", .long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"), @@ -103,4 +115,5 @@ AVOutputFormat ff_webvtt_muxer = { .subtitle_codec = AV_CODEC_ID_WEBVTT, .write_header = webvtt_write_header, .write_packet = webvtt_write_packet, + .priv_class = &webvtt_muxer_class, }; -- 1.7.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".