Revision 5d4890d7 libavfilter/vf_pad.c

View differences:

libavfilter/vf_pad.c
247 247
    AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0);
248 248
    int plane;
249 249

  
250
    inlink->dst->outputs[0]->outpic = outpicref;
250
    inlink->dst->outputs[0]->out_buf = outpicref;
251 251

  
252 252
    for (plane = 0; plane < 4 && outpicref->data[plane]; plane++) {
253 253
        int hsub = (plane == 1 || plane == 2) ? pad->hsub : 0;
......
263 263
static void end_frame(AVFilterLink *link)
264 264
{
265 265
    avfilter_end_frame(link->dst->outputs[0]);
266
    avfilter_unref_buffer(link->cur_pic);
266
    avfilter_unref_buffer(link->cur_buf);
267 267
}
268 268

  
269 269
static void draw_send_bar_slice(AVFilterLink *link, int y, int h, int slice_dir, int before_slice)
......
282 282
    }
283 283

  
284 284
    if (bar_h) {
285
        draw_rectangle(link->dst->outputs[0]->outpic,
285
        draw_rectangle(link->dst->outputs[0]->out_buf,
286 286
                       pad->line, pad->line_step, pad->hsub, pad->vsub,
287 287
                       0, bar_y, pad->w, bar_h);
288 288
        avfilter_draw_slice(link->dst->outputs[0], bar_y, bar_h, slice_dir);
......
292 292
static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
293 293
{
294 294
    PadContext *pad = link->dst->priv;
295
    AVFilterBufferRef *outpic = link->dst->outputs[0]->outpic;
295
    AVFilterBufferRef *outpic = link->dst->outputs[0]->out_buf;
296 296

  
297 297
    y += pad->y;
298 298

  

Also available in: Unified diff