changeset 11430:b1b2215cb7c7 libavcodec

vp3: correctly clip vp3_draw_horiz_band call
author conrad
date Tue, 09 Mar 2010 06:52:33 +0000
parents 4eee52db3c4c
children da870c6f71ce
files vp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Tue Mar 09 06:21:41 2010 +0000
+++ b/vp3.c	Tue Mar 09 06:52:33 2010 +0000
@@ -1565,7 +1565,7 @@
       *     dispatch (slice - 1);
       */
 
-    vp3_draw_horiz_band(s, 64*slice + 64-16);
+    vp3_draw_horiz_band(s, FFMIN(64*slice + 64-16, s->height-16));
 }
 
 /*