From: JULIAN GARDNER Date: Fri, 14 Oct 2011 14:26:38 +0000 (+0200) Subject: dvbsubdec: change the top_bottom correction X-Git-Tag: android-x86-4.4-r1~15570 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=168a5d3b3cc04d7d88e7b805dde954908c0a96ea;p=android-x86%2Fexternal-ffmpeg.git dvbsubdec: change the top_bottom correction Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 7a3e481c37..2e9ef12347 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -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) {