1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-19 07:45:05 +02:00

libzvbi-teletextdec: add chopped top row size to y offset

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2013-12-07 17:18:27 +01:00
parent 249a435989
commit c77e0c2130

View File

@ -255,7 +255,7 @@ static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_pa
fix_transparency(ctx, sub_rect, page, chop_top, cmax, resx, resy);
sub_rect->x = ctx->x_offset;
sub_rect->y = ctx->y_offset;
sub_rect->y = ctx->y_offset + chop_top * BITMAP_CHAR_HEIGHT;
sub_rect->w = resx;
sub_rect->h = resy;
sub_rect->nb_colors = (int)cmax + 1;