diff mbox series

[FFmpeg-devel,v5,04/25] avcodec/libzvbi: set subtitle type

Message ID 0b69b1ce19e83149623c2464b5291b809691b002.1656151077.git.ffmpegagent@gmail.com
State New
Headers show
Series Subtitle Filtering 2022 | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Aman Karmani June 25, 2022, 9:57 a.m. UTC
From: softworkz <softworkz@hotmail.com>

Signed-off-by: softworkz <softworkz@hotmail.com>
---
 libavcodec/libzvbi-teletextdec.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index 92466cc11e..2aab10a548 100644
--- a/libavcodec/libzvbi-teletextdec.c
+++ b/libavcodec/libzvbi-teletextdec.c
@@ -751,10 +751,13 @@  static int teletext_init_decoder(AVCodecContext *avctx)
 
     switch (ctx->format_id) {
         case 0:
+            avctx->subtitle_type = AV_SUBTITLE_FMT_BITMAP;
             return 0;
         case 1:
+            avctx->subtitle_type = AV_SUBTITLE_FMT_ASS;
             return ff_ass_subtitle_header_default(avctx);
         case 2:
+            avctx->subtitle_type = AV_SUBTITLE_FMT_ASS;
             return my_ass_subtitle_header(avctx);
     }
     return AVERROR_BUG;