diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-04 01:04:55 +0300 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-04 01:04:55 +0300 |
commit | ae2abc69db54552dd6b687ad170ce3cb57882617 (patch) | |
tree | 5d8b7dab43342ac0d47902aaba4bc9b1254ec906 /libavfilter/vf_null.c | |
parent | dc264e77a3051e6d9eb5a3e9a42ee21d12cdf703 (diff) |
Explicitely define get_video_buffer() callbacks in the format,
noformat and null filters.
Originally committed as revision 20443 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_null.c')
-rw-r--r-- | libavfilter/vf_null.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/vf_null.c b/libavfilter/vf_null.c index 3724ac7d68..582708ce0c 100644 --- a/libavfilter/vf_null.c +++ b/libavfilter/vf_null.c @@ -23,6 +23,12 @@ #include "avfilter.h" +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) { avfilter_start_frame(link->dst->outputs[0], picref); @@ -41,6 +47,7 @@ AVFilter avfilter_vf_null = { .inputs = (AVFilterPad[]) {{ .name = "default", .type = CODEC_TYPE_VIDEO, + .get_video_buffer = get_video_buffer, .start_frame = start_frame, .end_frame = end_frame }, { .name = NULL}}, |