mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libzvbi-teletextdec: set bitmap teletext canvas dimensions
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
c77e0c2130
commit
97f880e7a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user