From: softworkz <softwo...@hotmail.com>

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

diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index 45e30eb01c..486aa1724e 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;
-- 
ffmpeg-codebot

_______________________________________________
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".

Reply via email to