| Index: source/patched-ffmpeg-mt/libavfilter/vf_pad.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavfilter/vf_pad.c (revision 59334)
|
| +++ source/patched-ffmpeg-mt/libavfilter/vf_pad.c (working copy)
|
| @@ -407,7 +407,7 @@
|
|
|
| color->w &= ~((1 << color->hsub) - 1);
|
| color->h &= ~((1 << color->vsub) - 1);
|
| - if (av_check_image_size(color->w, color->h, 0, ctx) < 0)
|
| + if (av_image_check_size(color->w, color->h, 0, ctx) < 0)
|
| return AVERROR(EINVAL);
|
|
|
| memcpy(rgba_color, color->color, sizeof(rgba_color));
|
| @@ -428,9 +428,9 @@
|
| {
|
| ColorContext *color = link->src->priv;
|
| AVFilterBufferRef *picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h);
|
| - picref->pixel_aspect = (AVRational) {1, 1};
|
| - picref->pts = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q);
|
| - picref->pos = 0;
|
| + picref->video->pixel_aspect = (AVRational) {1, 1};
|
| + picref->pts = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q);
|
| + picref->pos = 0;
|
|
|
| avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0));
|
| draw_rectangle(picref,
|
|
|