aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2009-10-16 22:55:34 +0000
committerAlexander Strange <astrange@ithinksw.com>2009-10-16 22:55:34 +0000
commit8471a1873d15852c0db7edc2750cf971153d4812 (patch)
tree5267488b5dcc9e2767a3ed2dc5bcb17b3924eaec
parent6ec8eadda49a6688f275f0f213ef98005c47e126 (diff)
downloadffmpeg-8471a1873d15852c0db7edc2750cf971153d4812.tar.gz
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
-rw-r--r--libavcodec/huffyuv.c4
1 files changed, 1 insertions, 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);
}
}