summaryrefslogtreecommitdiff
path: root/libavfilter/vf_dnn_classify.c
diff options
context:
space:
mode:
authorShubhanshu Saxena <shubhanshu.e01@gmail.com>2022-03-02 23:35:56 +0530
committerGuo Yejun <yejun.guo@intel.com>2022-03-12 15:10:28 +0800
commitd0a999a0ab8313fd1b5e9cb09e35fb769fb3e51c (patch)
tree7da55fe036df4955601d52dc13260ee2a60c380d /libavfilter/vf_dnn_classify.c
parent1df77bab08ac53482f94c4d4be2449cfa50b8e68 (diff)
libavfilter: Remove DNNReturnType from DNN Module
This patch removes all occurences of DNNReturnType from the DNN module. This commit replaces DNN_SUCCESS by 0 (essentially the same), so the functions with DNNReturnType now return 0 in case of success, the negative values otherwise. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com> Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
Diffstat (limited to 'libavfilter/vf_dnn_classify.c')
-rw-r--r--libavfilter/vf_dnn_classify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_dnn_classify.c b/libavfilter/vf_dnn_classify.c
index 5c6942d86a..c612ba8e80 100644
--- a/libavfilter/vf_dnn_classify.c
+++ b/libavfilter/vf_dnn_classify.c
@@ -213,7 +213,7 @@ static int dnn_classify_flush_frame(AVFilterLink *outlink, int64_t pts, int64_t
DNNAsyncStatusType async_state;
ret = ff_dnn_flush(&ctx->dnnctx);
- if (ret != DNN_SUCCESS) {
+ if (ret != 0) {
return -1;
}
@@ -253,7 +253,7 @@ static int dnn_classify_activate(AVFilterContext *filter_ctx)
if (ret < 0)
return ret;
if (ret > 0) {
- if (ff_dnn_execute_model_classification(&ctx->dnnctx, in, NULL, ctx->target) != DNN_SUCCESS) {
+ if (ff_dnn_execute_model_classification(&ctx->dnnctx, in, NULL, ctx->target) != 0) {
return AVERROR(EIO);
}
}