changeset 12460:7106d2c8f142 libavcodec

Fix vp3_draw_horiz_band to not produce completely chaotical values that result in overdrawing areas again and again if s->flipped_image is false.
author reimar
date Mon, 06 Sep 2010 19:21:13 +0000
parents b3f8dba49d1f
children 25174028da0a
files vp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Mon Sep 06 17:53:29 2010 +0000
+++ b/vp3.c	Mon Sep 06 19:21:13 2010 +0000
@@ -1322,6 +1322,7 @@
         return;
 
     h= y - s->last_slice_end;
+    s->last_slice_end= y;
     y -= h;
 
     if (!s->flipped_image) {
@@ -1338,7 +1339,6 @@
 
     emms_c();
     s->avctx->draw_horiz_band(s->avctx, &s->current_frame, offset, y, 3, h);
-    s->last_slice_end= y + h;
 }
 
 /*