diff options
author | Shubhanshu Saxena <shubhanshu.e01@gmail.com> | 2022-03-02 23:35:56 +0530 |
---|---|---|
committer | Guo Yejun <yejun.guo@intel.com> | 2022-03-12 15:10:28 +0800 |
commit | d0a999a0ab8313fd1b5e9cb09e35fb769fb3e51c (patch) | |
tree | 7da55fe036df4955601d52dc13260ee2a60c380d /libavfilter/vf_sr.c | |
parent | 1df77bab08ac53482f94c4d4be2449cfa50b8e68 (diff) | |
download | ffmpeg-d0a999a0ab8313fd1b5e9cb09e35fb769fb3e51c.tar.gz |
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_sr.c')
-rw-r--r-- | libavfilter/vf_sr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index 02d9452681..0890c8ba18 100644 --- a/libavfilter/vf_sr.c +++ b/libavfilter/vf_sr.c @@ -82,7 +82,7 @@ static int config_output(AVFilterLink *outlink) // have a try run in case that the dnn model resize the frame result = ff_dnn_get_output(&ctx->dnnctx, inlink->w, inlink->h, &out_width, &out_height); - if (result != DNN_SUCCESS) { + if (result != 0) { av_log(ctx, AV_LOG_ERROR, "could not get output from the model\n"); return result; } @@ -139,7 +139,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) dnn_result = ff_dnn_execute_model(&ctx->dnnctx, in, out); } - if (dnn_result != DNN_SUCCESS){ + if (dnn_result != 0){ av_log(ctx, AV_LOG_ERROR, "failed to execute loaded model\n"); av_frame_free(&in); av_frame_free(&out); |