# HG changeset patch # User michael # Date 1222739153 0 # Node ID 64f35acc24079b26a4b44c4c61d7d00eb3413303 # Parent 8a3f24796fa9e9ef0e71ebfe0a4326c599a37c4b Allocate 1 line more in the chroma plane for H.264, this avoids some out of array reads with mmx/sse2 code. Fixes issue327. diff -r 8a3f24796fa9 -r 64f35acc2407 utils.c --- a/utils.c Tue Sep 30 01:07:25 2008 +0000 +++ b/utils.c Tue Sep 30 01:45:53 2008 +0000 @@ -170,6 +170,8 @@ *width = ALIGN(*width , w_align); *height= ALIGN(*height, h_align); + if(s->codec_id == CODEC_ID_H264) + *height+=2; // some of the optimized chroma MC reads one line too much } int avcodec_check_dimensions(void *av_log_ctx, unsigned int w, unsigned int h){