Commit 13c3d7e7 authored by astrange's avatar astrange

Huffyuv: Remove unnecessary allocation in alloc_temp().

RGB only needs one temp array.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20258 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c2c335cd
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment