OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249a435
)
libzvbi-teletextdec: add chopped top row size to y offset
author
Marton Balint
<cus@passwd.hu>
Sat, 7 Dec 2013 16:18:27 +0000
(17:18 +0100)
committer
Marton Balint
<cus@passwd.hu>
Sat, 14 Dec 2013 14:57:44 +0000
(15:57 +0100)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavcodec/libzvbi-teletextdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/libzvbi-teletextdec.c
b/libavcodec/libzvbi-teletextdec.c
index
1bdd5fa
..
664906a
100644
(file)
--- 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;