1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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>
This commit is contained in:
Jun Zhao 2019-06-01 11:25:46 +08:00
parent 51b0e81216
commit 5c1fbc4239

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]);
}
}