[FFmpeg-cvslog] libzvbi-teletextdec: add chopped top row size to y offset
Marton Balint
git at videolan.org
Sun Dec 15 03:33:09 CET 2013
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Dec 7 17:18:27 2013 +0100| [c77e0c2130c314cf1456156fbdefee898a483216] | committer: Marton Balint
libzvbi-teletextdec: add chopped top row size to y offset
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c77e0c2130c314cf1456156fbdefee898a483216
---
libavcodec/libzvbi-teletextdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list