mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
vsink_nullsink: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
45eed9b197
commit
c262e8cff6
@ -20,13 +20,9 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
|
|
||||||
static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
|
static int filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int end_frame(AVFilterLink *link)
|
|
||||||
{
|
{
|
||||||
|
avfilter_unref_bufferp(&frame);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,8 +30,7 @@ static const AVFilterPad avfilter_vsink_nullsink_inputs[] = {
|
|||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.start_frame = start_frame,
|
.filter_frame = filter_frame,
|
||||||
.end_frame = end_frame,
|
|
||||||
},
|
},
|
||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user