summaryrefslogtreecommitdiff
path: root/libavfilter/vsink_nullsink.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-27 07:49:45 +0100
committerAnton Khirnov <anton@khirnov.net>2012-11-28 08:50:19 +0100
commit565e4993c63f797e2d50ad2f1e8f62fdbe299666 (patch)
treebae5282b2ee875de4b01467f3cfaab54b0ab6ec0 /libavfilter/vsink_nullsink.c
parentbb6c67bb36b136de10256f0999128df4a42f9ffc (diff)
lavfi: merge start_frame/draw_slice/end_frame
Any alleged performance benefits gained from the split are purely mythological and do not justify added code complexity.
Diffstat (limited to 'libavfilter/vsink_nullsink.c')
-rw-r--r--libavfilter/vsink_nullsink.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libavfilter/vsink_nullsink.c b/libavfilter/vsink_nullsink.c
index b10ee626b1..71d2b3ec50 100644
--- a/libavfilter/vsink_nullsink.c
+++ b/libavfilter/vsink_nullsink.c
@@ -20,13 +20,9 @@
#include "internal.h"
#include "libavutil/internal.h"
-static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
-{
- return 0;
-}
-
-static int end_frame(AVFilterLink *link)
+static int filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
{
+ avfilter_unref_bufferp(&frame);
return 0;
}
@@ -34,8 +30,7 @@ static const AVFilterPad avfilter_vsink_nullsink_inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
- .start_frame = start_frame,
- .end_frame = end_frame,
+ .filter_frame = filter_frame,
},
{ NULL },
};