summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-16 01:04:15 +0100
committerSteven Liu <lq@chinaffmpeg.org>2019-12-23 14:05:54 +0800
commit74a8be3546c54e109ca16639f9863a6cdcd9aead (patch)
treec5325c25f88949cc88cab0caecc52bda38215f26 /libavformat/hlsenc.c
parent5ba3a8958c76d5490bcc9ba4441f03bedd9aebc6 (diff)
avformat/hlsenc: Fix check for presence of webvtt muxer
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Steven Liu <lq@onvideo.cn>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 20aa1683da..6551e1c234 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2811,7 +2811,7 @@ static int hls_init(AVFormatContext *s)
if (vs->has_subtitle) {
vs->vtt_oformat = av_guess_format("webvtt", NULL, NULL);
- if (!vs->oformat) {
+ if (!vs->vtt_oformat) {
ret = AVERROR_MUXER_NOT_FOUND;
goto fail;
}