From 0b3bd001ac1745d9d008a2d195817df57d7d1d14 Mon Sep 17 00:00:00 2001 From: Guo Yejun Date: Wed, 10 Jun 2020 13:36:11 +0800 Subject: dnn_backend_native: check operand index it fixed the issue in https://trac.ffmpeg.org/ticket/8716 --- libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/dnn/dnn_backend_native_layer_mathunary.h') diff --git a/libavfilter/dnn/dnn_backend_native_layer_mathunary.h b/libavfilter/dnn/dnn_backend_native_layer_mathunary.h index 0467717a8b..40a9bb5fb8 100644 --- a/libavfilter/dnn/dnn_backend_native_layer_mathunary.h +++ b/libavfilter/dnn/dnn_backend_native_layer_mathunary.h @@ -41,7 +41,7 @@ typedef struct DnnLayerMathUnaryParams{ DNNMathUnaryOperation un_op; } DnnLayerMathUnaryParams; -int dnn_load_layer_math_unary(Layer *layer, AVIOContext *model_file_context, int file_size); +int dnn_load_layer_math_unary(Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num); int dnn_execute_layer_math_unary(DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters); -- cgit v1.2.3