History

avfilter/vf_pad: use already available outlink variable

Paul B Mahol committed 4 years ago

Commit c72b5be1 parent 1a502b91 file · +2 −2Browse files

Unified · Split

libavfilter/vf_pad.c+2−2
@@ -355,7 +355,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 354 unmodified lines
355355
356356 if (needs_copy) {
357357 av_log(inlink->dst, AV_LOG_DEBUG, "Direct padding impossible allocating new frame\n");
358− out = ff_get_video_buffer(inlink->dst->outputs[0],
358+ out = ff_get_video_buffer(outlink,
359359 FFMAX(inlink->w, s->w),
360360 FFMAX(inlink->h, s->h));
361361 if (!out) {
@@ -410,7 +410,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 48 unmodified lines
410410
411411 if (in != out)
412412 av_frame_free(&in);
413− return ff_filter_frame(inlink->dst->outputs[0], out);
413+ return ff_filter_frame(outlink, out);
414414 }
415415
416416 #define OFFSET(x) offsetof(PadContext, x)

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