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
release/0.6
Alexander Strange 15 years ago
parent 6ec8eadda4
commit 8471a1873d
  1. 4
      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);
}
}

Loading…
Cancel
Save