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
This commit is contained in:
parent
6ec8eadda4
commit
8471a1873d
@ -406,9 +406,7 @@ static av_cold void alloc_temp(HYuvContext *s){
|
|||||||
s->temp[i]= av_malloc(s->width + 16);
|
s->temp[i]= av_malloc(s->width + 16);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
for(i=0; i<2; i++){
|
s->temp[0]= av_malloc(4*s->width + 16);
|
||||||
s->temp[i]= av_malloc(4*s->width + 16);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user