From 8471a1873d15852c0db7edc2750cf971153d4812 Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Fri, 16 Oct 2009 22:55:34 +0000 Subject: [PATCH] Huffyuv: Remove unnecessary allocation in alloc_temp(). RGB only needs one temp array. Originally committed as revision 20258 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/huffyuv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index bd1e12746f..3c64029bad 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -406,9 +406,7 @@ static av_cold void alloc_temp(HYuvContext *s){ s->temp[i]= av_malloc(s->width + 16); } }else{ - for(i=0; i<2; i++){ - s->temp[i]= av_malloc(4*s->width + 16); - } + s->temp[0]= av_malloc(4*s->width + 16); } }