Revision 7fce481a libavfilter/defaults.c
libavfilter/defaults.c | ||
---|---|---|
39 | 39 |
int i, tempsize; |
40 | 40 |
char *buf; |
41 | 41 |
|
42 |
ref->pic = pic;
|
|
42 |
ref->buf = pic;
|
|
43 | 43 |
ref->w = w; |
44 | 44 |
ref->h = h; |
45 | 45 |
|
... | ... | |
74 | 74 |
|
75 | 75 |
if(out) { |
76 | 76 |
out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h); |
77 |
avfilter_copy_picref_props(out->outpic, picref);
|
|
78 |
avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0));
|
|
77 |
avfilter_copy_buffer_ref_props(out->outpic, picref);
|
|
78 |
avfilter_start_frame(out, avfilter_ref_buffer(out->outpic, ~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_pic(link->cur_pic);
|
|
100 |
avfilter_unref_buffer(link->cur_pic);
|
|
101 | 101 |
link->cur_pic = NULL; |
102 | 102 |
|
103 | 103 |
if(out) { |
104 | 104 |
if(out->outpic) { |
105 |
avfilter_unref_pic(out->outpic);
|
|
105 |
avfilter_unref_buffer(out->outpic);
|
|
106 | 106 |
out->outpic = NULL; |
107 | 107 |
} |
108 | 108 |
avfilter_end_frame(out); |
Also available in: Unified diff