dvbsubdec: change the top_bottom correction
authorJULIAN GARDNER <joolzg@btinternet.com>
Fri, 14 Oct 2011 14:26:38 +0000 (16:26 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Oct 2011 18:19:59 +0000 (20:19 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvbsubdec.c

index 7a3e481..2e9ef12 100644 (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) {