diff options
author | Marton Balint <cus@passwd.hu> | 2013-12-07 17:18:27 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-12-14 15:57:44 +0100 |
commit | c77e0c2130c314cf1456156fbdefee898a483216 (patch) | |
tree | 01a5c6550722f34a5f92e9142e0d0f1a81c99f0c /libavcodec/libzvbi-teletextdec.c | |
parent | 249a435989d064833efac7f5bb319bb4cc4c58aa (diff) | |
download | ffmpeg-c77e0c2130c314cf1456156fbdefee898a483216.tar.gz |
libzvbi-teletextdec: add chopped top row size to y offset
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/libzvbi-teletextdec.c')
-rw-r--r-- | libavcodec/libzvbi-teletextdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 1bdd5fa3ab..664906adc9 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec/libzvbi-teletextdec.c @@ -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; |