summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorXu Jun <xujunzz@sjtu.edu.cn>2020-09-19 23:24:25 +0800
committerGuo, Yejun <yejun.guo@intel.com>2020-09-20 12:30:47 +0800
commita39fcbdffbcb8192332810d0a9217144560bef9f (patch)
treec94e7480ffb676e319502ce01b3d9c8d81f7430b /libavfilter
parent5aafdb4e5fe3ca8a0d8b16498caf5899a8d68e2c (diff)
dnn_backend_native_layer_conv2d.c: fix bug of loop boundary in single thread mode.
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. Signed-off-by: Xu Jun <xujunzz@sjtu.edu.cn> Signed-off-by: Guo, Yejun <yejun.guo@intel.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 2aaa4162df..0fb968a1fc 100644
--- a/libavfilter/dnn/dnn_backend_native_layer_conv2d.c
+++ b/libavfilter/dnn/dnn_backend_native_layer_conv2d.c
@@ -245,7 +245,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_
#else
thread_param[0] = av_malloc(sizeof(**thread_param));
thread_param[0]->thread_common_param = &thread_common_param;
- thread_param[0]->thread_start = 0;
+ thread_param[0]->thread_start = pad_size;
thread_param[0]->thread_end = height - pad_size;
dnn_execute_layer_conv2d_thread((void *)thread_param[0]);
av_free(thread_param[0]);