Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubhanshu Saxena <shubhanshu.e01@gmail.com>2022-03-02 21:05:49 +0300
committerGuo Yejun <yejun.guo@intel.com>2022-03-12 10:10:28 +0300
commite5ce6a60708fb9cd2ec46f6302c3bc943e330f16 (patch)
tree7b777915b5957b3f2547fe27c0268bbd4860ddb7 /libavfilter/vf_derain.c
parente7caa18b4a3344b90a0574591fd86158458b7e9f (diff)
libavfilter: Prepare to handle specific error codes in DNN Filters
This commit prepares the filter side to handle specific error codes from the DNN backends instead of current DNN_ERROR. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
Diffstat (limited to 'libavfilter/vf_derain.c')
-rw-r--r--libavfilter/vf_derain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_derain.c b/libavfilter/vf_derain.c
index 0eb7da18da..6758cc05d2 100644
--- a/libavfilter/vf_derain.c
+++ b/libavfilter/vf_derain.c
@@ -62,7 +62,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFilterContext *ctx = inlink->dst;
AVFilterLink *outlink = ctx->outputs[0];
DRContext *dr_context = ctx->priv;
- DNNReturnType dnn_result;
+ int dnn_result;
AVFrame *out;
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
@@ -77,7 +77,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (dnn_result != DNN_SUCCESS){
av_log(ctx, AV_LOG_ERROR, "failed to execute model\n");
av_frame_free(&in);
- return AVERROR(EIO);
+ return dnn_result;
}
do {
async_state = ff_dnn_get_result(&dr_context->dnnctx, &in, &out);