changeset 12472:9c9be94124f8 libavcodec

Only draw the actually visible area in vp3_draw_horiz_band. Fixes a black line in non-swapped, non-mod-16-height Theora videos when vp3_draw_horiz_band is used.
author reimar
date Wed, 08 Sep 2010 05:51:31 +0000
parents d821f7c64fc9
children 06abedae2906
files vp3.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Tue Sep 07 21:24:03 2010 +0000
+++ b/vp3.c	Wed Sep 08 05:51:31 2010 +0000
@@ -1326,9 +1326,7 @@
     y -= h;
 
     if (!s->flipped_image) {
-        if (y == 0)
-            h -= s->height - s->avctx->height;  // account for non-mod16
-        y = s->height - y - h;
+        y = s->avctx->height - y - h;
     }
 
     cy = y >> s->chroma_y_shift;
@@ -1850,7 +1848,7 @@
         int row = (s->height >> (3+(i && s->chroma_y_shift))) - 1;
         apply_loop_filter(s, i, row, row+1);
     }
-    vp3_draw_horiz_band(s, s->height);
+    vp3_draw_horiz_band(s, s->avctx->height);
 
     *data_size=sizeof(AVFrame);
     *(AVFrame*)data= s->current_frame;