summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsubdec.c
diff options
context:
space:
mode:
authorJULIAN GARDNER <joolzg@btinternet.com>2011-10-14 16:26:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-14 20:19:59 +0200
commit168a5d3b3cc04d7d88e7b805dde954908c0a96ea (patch)
treefde7833f0380d707fa870e594989c279366149ce /libavcodec/dvbsubdec.c
parentf12c7ad86d0f47ab26f2b49060683009e8e3beeb (diff)
dvbsubdec: change the top_bottom correction
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r--libavcodec/dvbsubdec.c3
1 files changed, 1 insertions, 2 deletions
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) {