From: Michael Niedermayer Date: Thu, 18 Sep 2014 19:10:18 +0000 (+0200) Subject: postproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of hard-codin... X-Git-Tag: n2.5~1440 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/859d7d4640c3cccde4803a4fe6878efd50e57bc0 postproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of hard-coding their size Signed-off-by: Michael Niedermayer --- diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 081b430939..214a654a04 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -926,8 +926,10 @@ void pp_free_context(void *vc){ PPContext *c = (PPContext*)vc; int i; - for(i=0; i<3; i++) av_free(c->tempBlurred[i]); - for(i=0; i<3; i++) av_free(c->tempBlurredPast[i]); + for(i=0; itempBlurred); i++) + av_free(c->tempBlurred[i]); + for(i=0; itempBlurredPast); i++) + av_free(c->tempBlurredPast[i]); av_free(c->tempBlocks); av_free(c->yHistogram);