mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
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
This commit is contained in:
parent
6974952d24
commit
3b9ee20f70
@ -1322,6 +1322,7 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
h= y - s->last_slice_end;
|
h= y - s->last_slice_end;
|
||||||
|
s->last_slice_end= y;
|
||||||
y -= h;
|
y -= h;
|
||||||
|
|
||||||
if (!s->flipped_image) {
|
if (!s->flipped_image) {
|
||||||
@ -1338,7 +1339,6 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
|
|||||||
|
|
||||||
emms_c();
|
emms_c();
|
||||||
s->avctx->draw_horiz_band(s->avctx, &s->current_frame, offset, y, 3, h);
|
s->avctx->draw_horiz_band(s->avctx, &s->current_frame, offset, y, 3, h);
|
||||||
s->last_slice_end= y + h;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user