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:
parent
51b0e81216
commit
5c1fbc4239
@ -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…
Reference in New Issue
Block a user