Before patch, fate test for dnn may fail in some Windows environment while succeed in my Linux. The bug was caused by a wrong loop boundary. After patch, fate test succeed in my windows mingw 64-bit.
Unified · Split
| @@ -245,7 +245,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_ · 244 unmodified lines | ||
| 245 | 245 | #else |
| 246 | 246 | thread_param[0] = av_malloc(sizeof(**thread_param)); |
| 247 | 247 | thread_param[0]->thread_common_param = &thread_common_param; |
| 248 | − thread_param[0]->thread_start = 0; | |
| 248 | + thread_param[0]->thread_start = pad_size; | |
| 249 | 249 | thread_param[0]->thread_end = height - pad_size; |
| 250 | 250 | dnn_execute_layer_conv2d_thread((void *)thread_param[0]); |
| 251 | 251 | av_free(thread_param[0]); |