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
355 355
356 if (needs_copy) {356 if (needs_copy) {
357 av_log(inlink->dst, AV_LOG_DEBUG, "Direct padding impossible allocating new frame\n");357 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,
359 FFMAX(inlink->w, s->w),359 FFMAX(inlink->w, s->w),
360 FFMAX(inlink->h, s->h));360 FFMAX(inlink->h, s->h));
361 if (!out) {361 if (!out) {
@@ -410,7 +410,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 48 unmodified lines
410 410
411 if (in != out)411 if (in != out)
412 av_frame_free(&in);412 av_frame_free(&in);
413 return ff_filter_frame(inlink->dst->outputs[0], out);413 return ff_filter_frame(outlink, out);
414}414}
415 415
416#define OFFSET(x) offsetof(PadContext, x)416#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