summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-09 14:10:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-09 14:58:26 +0200
commit9beaf536fe5b52ed5af4d4dd5746277ee5ac9552 (patch)
tree53b1dfa66ab8ed286c024616d77ec886d8eab5c3 /libavfilter
parent3e950f53496d53a45c9e1ba03aa83dfaa90b2ac0 (diff)
dnn/dnn_backend_native_layer_conv2d: Fix allocation size
Found via ASAN with the dnn-layer-conv2d FATE-test. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/dnn/dnn_backend_native_layer_conv2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/dnn/dnn_backend_native_layer_conv2d.c b/libavfilter/dnn/dnn_backend_native_layer_conv2d.c
index 777a54db43..c52725aa2b 100644
--- a/libavfilter/dnn/dnn_backend_native_layer_conv2d.c
+++ b/libavfilter/dnn/dnn_backend_native_layer_conv2d.c
@@ -228,7 +228,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_
//create threads
for (int i = 0; i < thread_num; i++){
- thread_param[i] = av_malloc(sizeof(thread_param));
+ thread_param[i] = av_malloc(sizeof(**thread_param));
thread_param[i]->thread_common_param = &thread_common_param;
thread_param[i]->thread_index = i;
pthread_create(&thread_id[i], NULL, dnn_execute_layer_conv2d_thread, (void *)thread_param[i]);