Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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) |