]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpsubdec.c
lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream.
[ffmpeg] / libavformat / mpsubdec.c
index 7c26d4f42ceac5b98baa0f33e9888eeac5c9d31f..c5a50ecb5cfd1be59de0437ccf5165df3d9ec0d3 100644 (file)
@@ -103,7 +103,7 @@ static int mpsub_read_header(AVFormatContext *s)
     st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
     st->codec->codec_id   = AV_CODEC_ID_TEXT;
 
-    ff_subtitles_queue_finalize(&mpsub->q);
+    ff_subtitles_queue_finalize(s, &mpsub->q);
 
 end:
     av_bprint_finalize(&buf, NULL);