]> git.sesse.net Git - ffmpeg/commit
dnn_backend_native_layer_conv2d.c: fix memory allocation bug in multithread function.
authorXu Jun <xujunzz@sjtu.edu.cn>
Wed, 16 Sep 2020 10:07:17 +0000 (18:07 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Thu, 17 Sep 2020 00:45:23 +0000 (08:45 +0800)
commit8e67ae2cb4cb6785bbaa6a5d4bbbacd035cfd027
treefda4214a1373ace7e56b85e7814a92f5c32cff72
parenta265e6604eb411316ec7ec91ba1bfaa37c71ef2d
dnn_backend_native_layer_conv2d.c: fix memory allocation bug in multithread function.

Before patch, memory was allocated in each thread functions,
which may cause more than one time of memory allocation and
cause crash.

After patch, memory is allocated in the main thread once,
an index was parsed into thread functions. Bug fixed.

Signed-off-by: Xu Jun <xujunzz@sjtu.edu.cn>
libavfilter/dnn/dnn_backend_native_layer_conv2d.c