summaryrefslogtreecommitdiffstats
path: root/libavcodec/libzvbi-teletextdec.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-12-07 17:18:27 +0100
committerMarton Balint <cus@passwd.hu>2013-12-14 15:57:44 +0100
commitc77e0c2130c314cf1456156fbdefee898a483216 (patch)
tree01a5c6550722f34a5f92e9142e0d0f1a81c99f0c /libavcodec/libzvbi-teletextdec.c
parent249a435989d064833efac7f5bb319bb4cc4c58aa (diff)
downloadffmpeg-streaming-c77e0c2130c314cf1456156fbdefee898a483216.zip
ffmpeg-streaming-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index 1bdd5fa..664906a 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;
OpenPOWER on IntegriCloud