Revision d313e17a libavfilter/vf_null.c

View differences:

libavfilter/vf_null.c
23 23

  
24 24
#include "avfilter.h"
25 25

  
26
static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
27
                                        int w, int h)
28
{
29
    return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
30
}
31

  
32
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
33
{
34
    avfilter_start_frame(link->dst->outputs[0], picref);
35
}
36

  
37
static void end_frame(AVFilterLink *link)
38
{
39
    avfilter_end_frame(link->dst->outputs[0]);
40
}
41

  
42 26
AVFilter avfilter_vf_null = {
43 27
    .name      = "null",
44 28
    .description = NULL_IF_CONFIG_SMALL("Pass the source unchanged to the output."),
......
47 31

  
48 32
    .inputs    = (AVFilterPad[]) {{ .name             = "default",
49 33
                                    .type             = CODEC_TYPE_VIDEO,
50
                                    .get_video_buffer = get_video_buffer,
51
                                    .start_frame      = start_frame,
52
                                    .end_frame        = end_frame },
34
                                    .get_video_buffer = avfilter_null_get_video_buffer,
35
                                    .start_frame      = avfilter_null_start_frame,
36
                                    .end_frame        = avfilter_null_end_frame },
53 37
                                  { .name = NULL}},
54 38

  
55 39
    .outputs   = (AVFilterPad[]) {{ .name             = "default",

Also available in: Unified diff