From 168a5d3b3cc04d7d88e7b805dde954908c0a96ea Mon Sep 17 00:00:00 2001 From: JULIAN GARDNER Date: Fri, 14 Oct 2011 16:26:38 +0200 Subject: dvbsubdec: change the top_bottom correction Signed-off-by: Michael Niedermayer --- libavcodec/dvbsubdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec') 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) { -- cgit v1.2.3