[FFmpeg-cvslog] libzvbi-teletextdec: set bitmap teletext canvas dimensions
Marton Balint
git at videolan.org
Sun Dec 15 03:33:10 CET 2013
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Dec 7 17:51:19 2013 +0100| [97f880e7a9526465a966565598741f4cc25ecc47] | committer: Marton Balint
libzvbi-teletextdec: set bitmap teletext canvas dimensions
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97f880e7a9526465a966565598741f4cc25ecc47
---
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;
More information about the ffmpeg-cvslog
mailing list