Found via ASAN with the dnn-layer-conv2d FATE-test.
Unified · Split
| @@ -228,7 +228,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_ · 227 unmodified lines | |||
| 228 | 228 | ||
| 229 | //create threads | 229 | //create threads |
| 230 | for (int i = 0; i < thread_num; i++){ | 230 | for (int i = 0; i < thread_num; i++){ |
| 231 | thread_param[i] = av_malloc(sizeof(thread_param)); | 231 | thread_param[i] = av_malloc(sizeof(**thread_param)); |
| 232 | thread_param[i]->thread_common_param = &thread_common_param; | 232 | thread_param[i]->thread_common_param = &thread_common_param; |
| 233 | thread_param[i]->thread_index = i; | 233 | thread_param[i]->thread_index = i; |
| 234 | pthread_create(&thread_id[i], NULL, dnn_execute_layer_conv2d_thread, (void *)thread_param[i]); | 234 | pthread_create(&thread_id[i], NULL, dnn_execute_layer_conv2d_thread, (void *)thread_param[i]); |