Mercurial > libavcodec.hg
comparison utils.c @ 4986:270e6cce0be3 libavcodec
fix a crash with svq1 + sse2.
EMU_EDGE broke memory alignment when the desired alignment is >32 bytes.
author | lorenm |
---|---|
date | Sat, 12 May 2007 00:31:48 +0000 |
parents | 8cd8fd35b6aa |
children | 7982b376b58a |
comparison
equal
deleted
inserted
replaced
4985:15577904cb95 | 4986:270e6cce0be3 |
---|---|
265 | 265 |
266 if(!(s->flags&CODEC_FLAG_EMU_EDGE)){ | 266 if(!(s->flags&CODEC_FLAG_EMU_EDGE)){ |
267 w+= EDGE_WIDTH*2; | 267 w+= EDGE_WIDTH*2; |
268 h+= EDGE_WIDTH*2; | 268 h+= EDGE_WIDTH*2; |
269 } | 269 } |
270 avcodec_align_dimensions(s, &w, &h); | |
271 | |
270 avpicture_fill(&picture, NULL, s->pix_fmt, w, h); | 272 avpicture_fill(&picture, NULL, s->pix_fmt, w, h); |
271 pixel_size= picture.linesize[0]*8 / w; | 273 pixel_size= picture.linesize[0]*8 / w; |
272 //av_log(NULL, AV_LOG_ERROR, "%d %d %d %d\n", (int)picture.data[1], w, h, s->pix_fmt); | 274 //av_log(NULL, AV_LOG_ERROR, "%d %d %d %d\n", (int)picture.data[1], w, h, s->pix_fmt); |
273 assert(pixel_size>=1); | 275 assert(pixel_size>=1); |
274 //FIXME next ensures that linesize= 2^x uvlinesize, thats needed because some MC code assumes it | 276 //FIXME next ensures that linesize= 2^x uvlinesize, thats needed because some MC code assumes it |