History

lavfi: add error handling to draw_slice().

Anton Khirnov committed 14 years ago

Commit e9b992d1 parent ebc8d9730 files · +128 −72Browse files

Showing the changes to libavfilter/split.c (1 of 30 files). Show all

Unified · Split

libavfilter/split.c+8−4
@@ -77,13 +77,17 @@ static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) · 76 unmodified lines
77 return ret;77 return ret;
78}78}
79 79
80static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)80static int draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
81{81{
82 AVFilterContext *ctx = inlink->dst;82 AVFilterContext *ctx = inlink->dst;
83 int i;83 int i, ret = 0;
84 84
85 for (i = 0; i < ctx->nb_outputs; i++)85 for (i = 0; i < ctx->nb_outputs; i++) {
86 ff_draw_slice(ctx->outputs[i], y, h, slice_dir);86 ret = ff_draw_slice(ctx->outputs[i], y, h, slice_dir);
87 if (ret < 0)
88 break;
89 }
90 return ret;
87}91}
88 92
89static void end_frame(AVFilterLink *inlink)93static void end_frame(AVFilterLink *inlink)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t