[SCM] libav/experimental: Huffyuv: Remove unnecessary allocation in alloc_temp().
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:52:59 UTC 2013
The following commit has been merged in the experimental branch:
commit 8471a1873d15852c0db7edc2750cf971153d4812
Author: Alexander Strange <astrange at ithinksw.com>
Date: Fri Oct 16 22:55:34 2009 +0000
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
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index bd1e127..3c64029 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);
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list