swscale/utils: remove redundant NULL checks before sws_freeVec()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/36/head
Michael Niedermayer 12 years ago
parent a446657d8c
commit 2d28950da9
  1. 12
      libswscale/utils.c

@ -1953,14 +1953,10 @@ void sws_freeFilter(SwsFilter *filter)
if (!filter)
return;
if (filter->lumH)
sws_freeVec(filter->lumH);
if (filter->lumV)
sws_freeVec(filter->lumV);
if (filter->chrH)
sws_freeVec(filter->chrH);
if (filter->chrV)
sws_freeVec(filter->chrV);
sws_freeVec(filter->lumH);
sws_freeVec(filter->lumV);
sws_freeVec(filter->chrH);
sws_freeVec(filter->chrV);
av_free(filter);
}

Loading…
Cancel
Save