Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 115760 | Differences between
and this patch

Collapse All | Expand All

(-)libavcodec/utils.c.orig (+9 lines)
Lines 325-330 Link Here
325
            const int h_shift= i==0 ? 0 : h_chroma_shift;
325
            const int h_shift= i==0 ? 0 : h_chroma_shift;
326
            const int v_shift= i==0 ? 0 : v_chroma_shift;
326
            const int v_shift= i==0 ? 0 : v_chroma_shift;
327
327
328
	    if(s->pix_fmt == PIX_FMT_PAL8 && i == 1)
329
	    {
330
	        buf->base[i] = av_malloc(256 * 4);
331
	        if(buf->base[i] == NULL)
332
	            return -1;
333
	        buf->data[i] = buf->base[i];
334
	        continue;
335
	    }
336
328
            //FIXME next ensures that linesize= 2^x uvlinesize, thats needed because some MC code assumes it
337
            //FIXME next ensures that linesize= 2^x uvlinesize, thats needed because some MC code assumes it
329
            buf->linesize[i]= ALIGN(pixel_size*w>>h_shift, STRIDE_ALIGN<<(h_chroma_shift-h_shift)); 
338
            buf->linesize[i]= ALIGN(pixel_size*w>>h_shift, STRIDE_ALIGN<<(h_chroma_shift-h_shift)); 
330
339

Return to bug 115760