diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-06-01 11:25:46 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-06-03 13:04:23 +0800 |
commit | 5c1fbc42397b26fe77abbd7e2ae604d57274ac35 (patch) | |
tree | 5a6150cc0a057abc3cbde5f779dbbd271c93b26b | |
parent | 51b0e812161d737802491fa883de8878fc256020 (diff) | |
download | ffmpeg-5c1fbc42397b26fe77abbd7e2ae604d57274ac35.tar.gz |
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>
-rw-r--r-- | libavfilter/vf_sr.c | 4 |
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]); } } |