# HG changeset patch # User henry # Date 1118138662 0 # Node ID 978f2346dc43f70ec3bbb7b491d476e0cca71763 # Parent cb3592da6d30e30c23538c11d9f52328530853ee correcting the previous draw_slice fix - don't draw slices beyond sh->disp_h - draw slices sh->disp_w wide to avoid buffer overflow in VO diff -r cb3592da6d30 -r 978f2346dc43 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Tue Jun 07 09:19:28 2005 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Jun 07 10:04:22 2005 +0000 @@ -451,11 +451,13 @@ } }else #endif + if (y < sh->disp_h) { #if LIBAVCODEC_BUILD >= 4670 - mpcodecs_draw_slice (sh, source, src->linesize, width, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y); + mpcodecs_draw_slice (sh, source, src->linesize, sh->disp_w, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y); #else - mpcodecs_draw_slice (sh,src, stride, width, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y); + mpcodecs_draw_slice (sh,src, stride, sh->disp_w, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y); #endif + } }