[FFmpeg-devel] [PATCH 4/4] libzvbi-teletextdec: set bitmap teletext canvas dimensions
Marton Balint
cus at passwd.hu
Sun Dec 8 15:12:02 CET 2013
Signed-off-by: Marton Balint <cus at passwd.hu>
---
libavcodec/libzvbi-teletextdec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index 664906a..abc24c3 100644
--- a/libavcodec/libzvbi-teletextdec.c
+++ b/libavcodec/libzvbi-teletextdec.c
@@ -474,6 +474,11 @@ static int teletext_init_decoder(AVCodecContext *avctx)
return AVERROR_EXTERNAL;
}
+ if (ctx->format_id == 0) {
+ avctx->width = 41 * BITMAP_CHAR_WIDTH;
+ avctx->height = 25 * BITMAP_CHAR_HEIGHT;
+ }
+
ctx->dx = NULL;
ctx->vbi = NULL;
ctx->pts = AV_NOPTS_VALUE;
--
1.8.4
More information about the ffmpeg-devel
mailing list