aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-09-06 19:21:13 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-09-06 19:21:13 +0000
commit3b9ee20f70cb725f9955e2ae758944846c76f391 (patch)
tree82dc8a0d2e8e71bf90cfe11ea76cc7cb252cc2bf /libavcodec
parent6974952d241b148a608e47b1c516145c34c421ff (diff)
downloadffmpeg-3b9ee20f70cb725f9955e2ae758944846c76f391.tar.gz
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. Originally committed as revision 25051 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 7e1a8ef95d..c4baff65fd 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1322,6 +1322,7 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
return;
h= y - s->last_slice_end;
+ s->last_slice_end= y;
y -= h;
if (!s->flipped_image) {
@@ -1338,7 +1339,6 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
emms_c();
s->avctx->draw_horiz_band(s->avctx, &s->current_frame, offset, y, 3, h);
- s->last_slice_end= y + h;
}
/*