Revision d313e17a libavfilter/vf_crop.c

View differences:

libavfilter/vf_crop.c
156 156
    return 0;
157 157
}
158 158

  
159
static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
160
                                        int w, int h)
161
{
162
    return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
163
}
164

  
165 159
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
166 160
{
167 161
    CropContext *crop = link->dst->priv;
......
223 217
                                    .type             = CODEC_TYPE_VIDEO,
224 218
                                    .start_frame      = start_frame,
225 219
                                    .draw_slice       = draw_slice,
226
                                    .get_video_buffer = get_video_buffer,
220
                                    .get_video_buffer = avfilter_null_get_video_buffer,
227 221
                                    .config_props     = config_input, },
228 222
                                  { .name = NULL}},
229 223
    .outputs   = (AVFilterPad[]) {{ .name             = "default",

Also available in: Unified diff