summaryrefslogtreecommitdiff
path: root/libavfilter/dnn/dnn_backend_native_layer_pad.h
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2020-06-10 13:36:11 +0800
committerGuo, Yejun <yejun.guo@intel.com>2020-06-17 13:42:52 +0800
commit0b3bd001ac1745d9d008a2d195817df57d7d1d14 (patch)
tree00fe52c18ac22476df43f24d533c6aef8f36965d /libavfilter/dnn/dnn_backend_native_layer_pad.h
parentfc932195ab0c9c00fa0cd9620c60763d978d495b (diff)
dnn_backend_native: check operand index
it fixed the issue in https://trac.ffmpeg.org/ticket/8716
Diffstat (limited to 'libavfilter/dnn/dnn_backend_native_layer_pad.h')
-rw-r--r--libavfilter/dnn/dnn_backend_native_layer_pad.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/dnn/dnn_backend_native_layer_pad.h b/libavfilter/dnn/dnn_backend_native_layer_pad.h
index 936a9bd010..18e05bdd5c 100644
--- a/libavfilter/dnn/dnn_backend_native_layer_pad.h
+++ b/libavfilter/dnn/dnn_backend_native_layer_pad.h
@@ -36,7 +36,7 @@ typedef struct LayerPadParams{
float constant_values;
} LayerPadParams;
-int dnn_load_layer_pad(Layer *layer, AVIOContext *model_file_context, int file_size);
+int dnn_load_layer_pad(Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num);
int dnn_execute_layer_pad(DnnOperand *operands, const int32_t *input_operand_indexes,
int32_t output_operand_index, const void *parameters);