[FFmpeg-cvslog] vsink_nullsink: switch to filter_frame
Anton Khirnov
git at videolan.org
Wed Nov 28 22:03:27 CET 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Nov 28 21:49:04 2012 +0100| [c262e8cff63376be80427e923e4361c8b150f4af] | committer: Michael Niedermayer
vsink_nullsink: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c262e8cff63376be80427e923e4361c8b150f4af
---
libavfilter/vsink_nullsink.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/libavfilter/vsink_nullsink.c b/libavfilter/vsink_nullsink.c
index 89bf29a..a37d346 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 },
};
More information about the ffmpeg-cvslog
mailing list