lavfi: add error handling to draw_slice().

This commit is contained in:
Anton Khirnov
2012-07-14 09:25:33 +02:00
parent ebc8d97481
commit e9b992d035
30 changed files with 128 additions and 72 deletions

View File

@@ -97,7 +97,7 @@ static int config_props(AVFilterLink *inlink)
return 0;
}
static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
static int draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
{
FadeContext *fade = inlink->dst->priv;
AVFilterBufferRef *outpic = inlink->cur_buf;
@@ -134,7 +134,7 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
}
}
ff_draw_slice(inlink->dst->outputs[0], y, h, slice_dir);
return ff_draw_slice(inlink->dst->outputs[0], y, h, slice_dir);
}
static void end_frame(AVFilterLink *inlink)