Mercurial > libavcodec.hg
changeset 7942:64f35acc2407 libavcodec
Allocate 1 line more in the chroma plane for H.264, this avoids some
out of array reads with mmx/sse2 code.
Fixes issue327.
author | michael |
---|---|
date | Tue, 30 Sep 2008 01:45:53 +0000 |
parents | 8a3f24796fa9 |
children | 3ff31e4454cd |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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){