]> git.sesse.net Git - ffmpeg/commit
dnn/dnn_backend_native_layer_conv2d: Avoid allocation when single-threaded
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 10 Mar 2021 16:03:01 +0000 (17:03 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 11 Mar 2021 11:47:11 +0000 (12:47 +0100)
commit16e36d5c0cb9573b10cbbc5c40aaec58d4a340e7
tree0bc3727369ab6771b02af68eab05193af09a5be4
parent639b3bbbc7a3736db9255ad6da2e513a529fb4d3
dnn/dnn_backend_native_layer_conv2d: Avoid allocation when single-threaded

Also fixes a memleak in single-threaded mode when an error happens
in preparing the output data buffer; and also removes an unchecked
allocation.

Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/dnn/dnn_backend_native_layer_conv2d.c