]> git.sesse.net Git - ffmpeg/commit
lavfi/dnn: check the return value from sws_getContext
authorJun Zhao <barryjzhao@tencent.com>
Wed, 9 Dec 2020 09:53:10 +0000 (17:53 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Sat, 12 Dec 2020 05:34:30 +0000 (13:34 +0800)
commit0320dab265ef880b5b07cac1f9ebaa3fb5417f6a
tree8c7e1db57687419b32b0c4ae383551c3e9aa06a0
parentae2075265b8e779ed0545aa4f9b238013b4e446f
lavfi/dnn: check the return value from sws_getContext

sws_getContext may be return NULL, and it's will be dereferenced,
so add the check.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavfilter/dnn/dnn_io_proc.c