[FFmpeg-cvslog] dvbsubdec: change the top_bottom correction

JULIAN GARDNER git at videolan.org
Fri Oct 14 20:29:02 CEST 2011


ffmpeg | branch: master | JULIAN GARDNER <joolzg at btinternet.com> | Fri Oct 14 16:26:38 2011 +0200| [168a5d3b3cc04d7d88e7b805dde954908c0a96ea] | committer: Michael Niedermayer

dvbsubdec: change the top_bottom correction

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=168a5d3b3cc04d7d88e7b805dde954908c0a96ea
---

 libavcodec/dvbsubdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 7a3e481..2e9ef12 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) {



More information about the ffmpeg-cvslog mailing list