Mercurial > libavcodec.hg
changeset 1798:a3da4b429984 libavcodec
ppc chroma mess workaround (real bug is that the motion compensation code assumes that 2*uvlinesize == linesize and fixing this would mean a slowdown)
author | michael |
---|---|
date | Thu, 12 Feb 2004 16:21:21 +0000 |
parents | fac680cf3008 |
children | 95612d423fde |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Tue Feb 10 20:48:09 2004 +0000 +++ b/utils.c Thu Feb 12 16:21:21 2004 +0000 @@ -238,7 +238,8 @@ const int h_shift= i==0 ? 0 : h_chroma_shift; const int v_shift= i==0 ? 0 : v_chroma_shift; - buf->linesize[i]= ALIGN(pixel_size*w>>h_shift, s_align); + //FIXME next ensures that linesize= 2^x uvlinesize, thats needed because some MC code assumes it + buf->linesize[i]= ALIGN(pixel_size*w>>h_shift, s_align<<(h_chroma_shift-h_shift)); buf->base[i]= av_mallocz((buf->linesize[i]*h>>v_shift)+16); //FIXME 16 if(buf->base[i]==NULL) return -1;