fix a crash with svq1 + sse2.

EMU_EDGE broke memory alignment when the desired alignment is >32 bytes.

Originally committed as revision 8999 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Loren Merritt 2007-05-12 00:31:48 +00:00
parent 5f09770382
commit 5b67307a68
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
w+= EDGE_WIDTH*2;
h+= EDGE_WIDTH*2;
}
avcodec_align_dimensions(s, &w, &h);
avpicture_fill(&picture, NULL, s->pix_fmt, w, h);
pixel_size= picture.linesize[0]*8 / w;
//av_log(NULL, AV_LOG_ERROR, "%d %d %d %d\n", (int)picture.data[1], w, h, s->pix_fmt);