# HG changeset patch # User michael # Date 1067347031 0 # Node ID d1585f7d53668ef2b55f35432228ff55ec1b6255 # Parent f89e212dd5b97136b4468f3e4c21bd39438fabcf 10l diff -r f89e212dd5b9 -r d1585f7d5366 libmpcodecs/vf_spp.c --- a/libmpcodecs/vf_spp.c Tue Oct 28 12:41:19 2003 +0000 +++ b/libmpcodecs/vf_spp.c Tue Oct 28 13:17:11 2003 +0000 @@ -197,7 +197,7 @@ } } -static void store_slice_c(uint8_t *dst, int16_t *src, int dst_stride, int src_stride, int width, int log2_scale){ +static void store_slice_c(uint8_t *dst, int16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale){ int y, x; #define STORE(pos) \ @@ -205,7 +205,7 @@ if(temp & 0x100) temp= ~(temp>>31);\ dst[x + y*dst_stride + pos]= temp; - for(y=0; y<8; y++){ + for(y=0; ytemp + 8 + y*stride, dst_stride, stride, width, 6-p->log2_count); + store_slice(dst + (y-8)*dst_stride, p->temp + 8 + y*stride, dst_stride, stride, width, XMIN(8, height+8-y), 6-p->log2_count); } #if 0 for(y=0; ypriv->temp_stride= (width+16+15)&(~15); - vf->priv->temp= malloc(vf->priv->temp_stride*(height+16)*sizeof(int16_t)); - vf->priv->src = malloc(vf->priv->temp_stride*(height+16)*sizeof(uint8_t)); + vf->priv->temp= malloc(vf->priv->temp_stride*h*sizeof(int16_t)); + vf->priv->src = malloc(vf->priv->temp_stride*h*sizeof(uint8_t)); return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt); }