Revision d313e17a libavfilter/vf_aspect.c

View differences:

libavfilter/vf_aspect.c
56 56
    return 0;
57 57
}
58 58

  
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 59
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
67 60
{
68 61
    AspectContext *aspect = link->dst->priv;
......
71 64
    avfilter_start_frame(link->dst->outputs[0], picref);
72 65
}
73 66

  
74
static void end_frame(AVFilterLink *link)
75
{
76
    avfilter_end_frame(link->dst->outputs[0]);
77
}
78

  
79 67
#if CONFIG_ASPECT_FILTER
80 68
/* for aspect filter, convert from frame aspect ratio to pixel aspect ratio */
81 69
static int frameaspect_config_props(AVFilterLink *inlink)
......
100 88
    .inputs    = (AVFilterPad[]) {{ .name             = "default",
101 89
                                    .type             = CODEC_TYPE_VIDEO,
102 90
                                    .config_props     = frameaspect_config_props,
103
                                    .get_video_buffer = get_video_buffer,
91
                                    .get_video_buffer = avfilter_null_get_video_buffer,
104 92
                                    .start_frame      = start_frame,
105
                                    .end_frame        = end_frame },
93
                                    .end_frame        = avfilter_null_end_frame },
106 94
                                  { .name = NULL}},
107 95

  
108 96
    .outputs   = (AVFilterPad[]) {{ .name             = "default",
......
122 110

  
123 111
    .inputs    = (AVFilterPad[]) {{ .name             = "default",
124 112
                                    .type             = CODEC_TYPE_VIDEO,
125
                                    .get_video_buffer = get_video_buffer,
113
                                    .get_video_buffer = avfilter_null_get_video_buffer,
126 114
                                    .start_frame      = start_frame,
127
                                    .end_frame        = end_frame },
115
                                    .end_frame        = avfilter_null_end_frame },
128 116
                                  { .name = NULL}},
129 117

  
130 118
    .outputs   = (AVFilterPad[]) {{ .name             = "default",

Also available in: Unified diff