Commit 5c1fbc42 authored by Jun Zhao's avatar Jun Zhao

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: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 51b0e812
......@@ -286,10 +286,8 @@ 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]);
}
}
}
static const AVFilterPad sr_inputs[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment