diff 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
line wrap: on
line diff
--- 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);