dvbsubdec: change the top_bottom correction

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
JULIAN GARDNER 2011-10-14 16:26:38 +02:00 committed by Michael Niedermayer
parent f12c7ad86d
commit 168a5d3b3c
1 changed files with 1 additions and 2 deletions

View File

@ -789,8 +789,7 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis
x_pos = display->x_pos;
y_pos = display->y_pos;
if ((y_pos & 1) != top_bottom)
y_pos++;
y_pos += top_bottom;
while (buf < buf_end) {
if (x_pos >= region->width || y_pos >= region->height) {