Revision d313e17a libavfilter/vf_slicify.c

View differences:

libavfilter/vf_slicify.c
57 57
    return 0;
58 58
}
59 59

  
60
static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
61
                                        int w, int h)
62
{
63
    return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
64
}
65

  
66 60
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
67 61
{
68 62
    SliceContext *slice = link->dst->priv;
......
81 75
    avfilter_start_frame(link->dst->outputs[0], picref);
82 76
}
83 77

  
84
static void end_frame(AVFilterLink *link)
85
{
86
    avfilter_end_frame(link->dst->outputs[0]);
87
}
88

  
89 78
static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
90 79
{
91 80
    SliceContext *slice = link->dst->priv;
......
116 105

  
117 106
    .inputs    = (AVFilterPad[]) {{ .name             = "default",
118 107
                                    .type             = CODEC_TYPE_VIDEO,
119
                                    .get_video_buffer = get_video_buffer,
108
                                    .get_video_buffer = avfilter_null_get_video_buffer,
120 109
                                    .start_frame      = start_frame,
121 110
                                    .draw_slice       = draw_slice,
122 111
                                    .config_props     = config_props,
123
                                    .end_frame        = end_frame, },
112
                                    .end_frame        = avfilter_null_end_frame, },
124 113
                                  { .name = NULL}},
125 114
    .outputs   = (AVFilterPad[]) {{ .name            = "default",
126 115
                                    .type            = CODEC_TYPE_VIDEO, },

Also available in: Unified diff