summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-06-01 11:25:46 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-06-03 13:04:23 +0800
commit5c1fbc42397b26fe77abbd7e2ae604d57274ac35 (patch)
tree5a6150cc0a057abc3cbde5f779dbbd271c93b26b /libavfilter
parent51b0e812161d737802491fa883de8878fc256020 (diff)
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>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_sr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c
index a371e443d4..0be572ff9d 100644
--- a/libavfilter/vf_sr.c
+++ b/libavfilter/vf_sr.c
@@ -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]);
}
}