Revision 5d4890d7 libavfilter/defaults.c

View differences:

libavfilter/defaults.c
73 73
        out = link->dst->outputs[0];
74 74

  
75 75
    if(out) {
76
        out->outpic      = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h);
77
        avfilter_copy_buffer_ref_props(out->outpic, picref);
78
        avfilter_start_frame(out, avfilter_ref_buffer(out->outpic, ~0));
76
        out->out_buf      = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h);
77
        avfilter_copy_buffer_ref_props(out->out_buf, picref);
78
        avfilter_start_frame(out, avfilter_ref_buffer(out->out_buf, ~0));
79 79
    }
80 80
}
81 81

  
......
97 97
    if(link->dst->output_count)
98 98
        out = link->dst->outputs[0];
99 99

  
100
    avfilter_unref_buffer(link->cur_pic);
101
    link->cur_pic = NULL;
100
    avfilter_unref_buffer(link->cur_buf);
101
    link->cur_buf = NULL;
102 102

  
103 103
    if(out) {
104
        if(out->outpic) {
105
            avfilter_unref_buffer(out->outpic);
106
            out->outpic = NULL;
104
        if(out->out_buf) {
105
            avfilter_unref_buffer(out->out_buf);
106
            out->out_buf = NULL;
107 107
        }
108 108
        avfilter_end_frame(out);
109 109
    }

Also available in: Unified diff