mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
postproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of hard-coding their size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d9b141c05f
commit
859d7d4640
@ -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; i<FF_ARRAY_ELEMS(c->tempBlurred); 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->yHistogram);
|
||||
|
Loading…
Reference in New Issue
Block a user