Browse Source

lavf/sr: Don't need to check NULL before sws_freeContext

sws_freeContext have check the NULL pointer, so don't need to check
NULL before sws_freeContext.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
tags/n4.2
Jun Zhao 6 years ago
parent
commit
5c1fbc4239
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavfilter/vf_sr.c

+ 1
- 3
libavfilter/vf_sr.c View File

@@ -286,9 +286,7 @@ static av_cold void uninit(AVFilterContext *context)
}

for (i = 0; i < 3; ++i){
if (sr_context->sws_contexts[i]){
sws_freeContext(sr_context->sws_contexts[i]);
}
sws_freeContext(sr_context->sws_contexts[i]);
}
}



Loading…
Cancel
Save