提交 8471a187 编写于 作者: A Alexander Strange

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
上级 6ec8eadd
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册