diff options
author | S.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu> | 2010-08-07 01:15:27 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-07 01:15:27 +0000 |
commit | 7fce481a69053dd24dbf9f1cb0f5b51df2ec925c (patch) | |
tree | 0f61baf91fc505244098f2aa23e8aea4f0b08704 /libavfilter/vf_pad.c | |
parent | ecc8dada379261b8ad3788336cdc9d15de55b64b (diff) | |
download | ffmpeg-7fce481a69053dd24dbf9f1cb0f5b51df2ec925c.tar.gz |
Rename functions and fields:
avfilter_(un)ref_pic -> avfilter_(un)ref_buffer
avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props
AVFilterBufferRef.pic -> AVFilterBufferRef.buffer
They have been renamed to allow sharing with audio.
Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$.
Originally committed as revision 24731 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_pad.c')
-rw-r--r-- | libavfilter/vf_pad.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index e6b9e48ca1..1dd26a9bc3 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -244,7 +244,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *inlink, int perms, int static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { PadContext *pad = inlink->dst->priv; - AVFilterBufferRef *outpicref = avfilter_ref_pic(inpicref, ~0); + AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0); int plane; inlink->dst->outputs[0]->outpic = outpicref; @@ -263,7 +263,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) static void end_frame(AVFilterLink *link) { avfilter_end_frame(link->dst->outputs[0]); - avfilter_unref_pic(link->cur_pic); + avfilter_unref_buffer(link->cur_pic); } static void draw_send_bar_slice(AVFilterLink *link, int y, int h, int slice_dir, int before_slice) @@ -432,13 +432,13 @@ static int color_request_frame(AVFilterLink *link) picref->pts = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q); picref->pos = 0; - avfilter_start_frame(link, avfilter_ref_pic(picref, ~0)); + avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0)); draw_rectangle(picref, color->line, color->line_step, color->hsub, color->vsub, 0, 0, color->w, color->h); avfilter_draw_slice(link, 0, color->h, 1); avfilter_end_frame(link); - avfilter_unref_pic(picref); + avfilter_unref_buffer(picref); return 0; } |