Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <uhmmmm@gmail.com>2010-03-19 02:13:02 +0300
committerBobby Bingham <uhmmmm@gmail.com>2010-03-19 02:13:02 +0300
commitd313e17ab1180fcced3e61736e6e87f3d4f5101e (patch)
tree91cc5ac6f11fa26f138f7dc5a75db16e7527e40f /libavfilter/vf_crop.c
parent91d1c741bfa5c39c222bb3f86357a9da50227df1 (diff)
Use the new null callbacks to simplify filters and reduce duplicated code.
Originally committed as revision 22595 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_crop.c')
-rw-r--r--libavfilter/vf_crop.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 94d89d1e5b..69dfdea2e7 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -156,12 +156,6 @@ static int config_output(AVFilterLink *link)
return 0;
}
-static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
- int w, int h)
-{
- return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
-}
-
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
{
CropContext *crop = link->dst->priv;
@@ -223,7 +217,7 @@ AVFilter avfilter_vf_crop = {
.type = CODEC_TYPE_VIDEO,
.start_frame = start_frame,
.draw_slice = draw_slice,
- .get_video_buffer = get_video_buffer,
+ .get_video_buffer = avfilter_null_get_video_buffer,
.config_props = config_input, },
{ .name = NULL}},
.outputs = (AVFilterPad[]) {{ .name = "default",