OSDN Git Service

vp3: correctly clip vp3_draw_horiz_band call
authorDavid Conrad <lessen42@gmail.com>
Tue, 9 Mar 2010 06:52:33 +0000 (06:52 +0000)
committerDavid Conrad <lessen42@gmail.com>
Tue, 9 Mar 2010 06:52:33 +0000 (06:52 +0000)
Originally committed as revision 22377 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp3.c

index 9e99dde..ff56be6 100644 (file)
@@ -1565,7 +1565,7 @@ static void render_slice(Vp3DecodeContext *s, int slice)
       *     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));
 }
 
 /*