[FFmpeg-cvslog] r8999 - trunk/libavcodec/utils.c

lorenm subversion
Sat May 12 02:31:48 CEST 2007


Author: lorenm
Date: Sat May 12 02:31:48 2007
New Revision: 8999

Log:
fix a crash with svq1 + sse2.
EMU_EDGE broke memory alignment when the desired alignment is >32 bytes.


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Sat May 12 02:31:48 2007
@@ -267,6 +267,8 @@ int avcodec_default_get_buffer(AVCodecCo
             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);




More information about the ffmpeg-cvslog mailing list