History

lavfi/aiir: Refine the pad/vpad related operation

move the pad/vpad related operation with more natural coding style.

Jun Zhao committed 6 years ago

Commit 018cd431 parent ff8329a1 file · +4 −6Browse files

Unified · Split

libavfilter/af_aiir.c+4−6
@@ -1180,6 +1180,10 @@ static av_cold int init(AVFilterContext *ctx) · 1179 unmodified lines
11801180 if (!pad.name)
11811181 return AVERROR(ENOMEM);
11821182
1183+ ret = ff_insert_outpad(ctx, 0, &pad);
1184+ if (ret < 0)
1185+ return ret;
1186+
11831187 if (s->response) {
11841188 vpad = (AVFilterPad){
11851189 .name = av_strdup("filter_response"),
@@ -1188,13 +1192,7 @@ static av_cold int init(AVFilterContext *ctx) · 2 unmodified lines
11881192 };
11891193 if (!vpad.name)
11901194 return AVERROR(ENOMEM);
1191− }
11921195
1193− ret = ff_insert_outpad(ctx, 0, &pad);
1194− if (ret < 0)
1195− return ret;
1196−
1197− if (s->response) {
11981196 ret = ff_insert_outpad(ctx, 1, &vpad);
11991197 if (ret < 0)
12001198 return ret;

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