Revision 7fce481a libavfilter/vf_pad.c

View differences:

libavfilter/vf_pad.c
244 244
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
245 245
{
246 246
    PadContext *pad = inlink->dst->priv;
247
    AVFilterBufferRef *outpicref = avfilter_ref_pic(inpicref, ~0);
247
    AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0);
248 248
    int plane;
249 249

  
250 250
    inlink->dst->outputs[0]->outpic = outpicref;
......
263 263
static void end_frame(AVFilterLink *link)
264 264
{
265 265
    avfilter_end_frame(link->dst->outputs[0]);
266
    avfilter_unref_pic(link->cur_pic);
266
    avfilter_unref_buffer(link->cur_pic);
267 267
}
268 268

  
269 269
static void draw_send_bar_slice(AVFilterLink *link, int y, int h, int slice_dir, int before_slice)
......
432 432
    picref->pts          = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q);
433 433
    picref->pos          = 0;
434 434

  
435
    avfilter_start_frame(link, avfilter_ref_pic(picref, ~0));
435
    avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0));
436 436
    draw_rectangle(picref,
437 437
                   color->line, color->line_step, color->hsub, color->vsub,
438 438
                   0, 0, color->w, color->h);
439 439
    avfilter_draw_slice(link, 0, color->h, 1);
440 440
    avfilter_end_frame(link);
441
    avfilter_unref_pic(picref);
441
    avfilter_unref_buffer(picref);
442 442

  
443 443
    return 0;
444 444
}

Also available in: Unified diff