diff options
author | Marton Balint <cus@passwd.hu> | 2013-12-07 17:51:19 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-12-14 15:57:44 +0100 |
commit | 97f880e7a9526465a966565598741f4cc25ecc47 (patch) | |
tree | b5652641c2e9094bb6c86452b3c5f7b3e64dbc89 /libavcodec/libzvbi-teletextdec.c | |
parent | c77e0c2130c314cf1456156fbdefee898a483216 (diff) | |
download | ffmpeg-97f880e7a9526465a966565598741f4cc25ecc47.tar.gz |
libzvbi-teletextdec: set bitmap teletext canvas dimensions
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/libzvbi-teletextdec.c')
-rw-r--r-- | libavcodec/libzvbi-teletextdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 664906adc9..abc24c37ea 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; |