Signed-off-by: Andreas Rheinhardt <[email protected]>
---
libavfilter/dnn/dnn_backend_native.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/dnn/dnn_backend_native.c
b/libavfilter/dnn/dnn_backend_native.c
index 5336cd765a..fd1f9e299d 100644
--- a/libavfilter/dnn/dnn_backend_native.c
+++ b/libavfilter/dnn/dnn_backend_native.c
@@ -157,12 +157,12 @@ DNNModel *ff_dnn_load_model_native(const char
*model_filename, DNNFunctionType f
if (!native_model){
goto fail;
}
+ model->model = native_model;
native_model->ctx.class = &dnn_native_class;
model->options = options;
if (av_opt_set_from_string(&native_model->ctx, model->options, NULL, "=",
"&") < 0)
goto fail;
- model->model = (void *)native_model;
native_model->model = model;
#if !HAVE_PTHREAD_CANCEL
--
2.27.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".