# HG changeset patch # User lorenm # Date 1178929908 0 # Node ID 270e6cce0be33b957e6a7f91daf9e4cb9c80839a # Parent 15577904cb95bd5407bccc0f8a6e79519937e7a3 fix a crash with svq1 + sse2. EMU_EDGE broke memory alignment when the desired alignment is >32 bytes. diff -r 15577904cb95 -r 270e6cce0be3 utils.c --- a/utils.c Fri May 11 09:28:07 2007 +0000 +++ b/utils.c Sat May 12 00:31:48 2007 +0000 @@ -267,6 +267,8 @@ 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);