Commit 97f880e7 authored by Marton Balint's avatar Marton Balint

libzvbi-teletextdec: set bitmap teletext canvas dimensions

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent c77e0c21
...@@ -474,6 +474,11 @@ static int teletext_init_decoder(AVCodecContext *avctx) ...@@ -474,6 +474,11 @@ static int teletext_init_decoder(AVCodecContext *avctx)
return AVERROR_EXTERNAL; return AVERROR_EXTERNAL;
} }
if (ctx->format_id == 0) {
avctx->width = 41 * BITMAP_CHAR_WIDTH;
avctx->height = 25 * BITMAP_CHAR_HEIGHT;
}
ctx->dx = NULL; ctx->dx = NULL;
ctx->vbi = NULL; ctx->vbi = NULL;
ctx->pts = AV_NOPTS_VALUE; ctx->pts = AV_NOPTS_VALUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment