Skip to content
Snippets Groups Projects
Commit 859d7d46 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

postproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of hard-coding their size

parent d9b141c0
No related branches found
No related tags found
No related merge requests found
...@@ -926,8 +926,10 @@ void pp_free_context(void *vc){ ...@@ -926,8 +926,10 @@ void pp_free_context(void *vc){
PPContext *c = (PPContext*)vc; PPContext *c = (PPContext*)vc;
int i; int i;
for(i=0; i<3; i++) av_free(c->tempBlurred[i]); for(i=0; i<FF_ARRAY_ELEMS(c->tempBlurred); i++)
for(i=0; i<3; i++) av_free(c->tempBlurredPast[i]); av_free(c->tempBlurred[i]);
for(i=0; i<FF_ARRAY_ELEMS(c->tempBlurredPast); i++)
av_free(c->tempBlurredPast[i]);
av_free(c->tempBlocks); av_free(c->tempBlocks);
av_free(c->yHistogram); av_free(c->yHistogram);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment