[SCM] libav/experimental: vp3: correctly clip vp3_draw_horiz_band call

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:03:48 UTC 2013


The following commit has been merged in the experimental branch:
commit d63a7187646c07619ecb07a3d4bb67c7fba5500d
Author: David Conrad <lessen42 at gmail.com>
Date:   Tue Mar 9 06:52:33 2010 +0000

    vp3: correctly clip vp3_draw_horiz_band call
    
    Originally committed as revision 22377 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 9e99dde..ff56be6 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -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));
 }
 
 /*

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list