buffersink: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5d796270c5
commit
b5ecfa1d8d
@ -48,13 +48,12 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
av_audio_fifo_free(sink->audio_fifo);
|
av_audio_fifo_free(sink->audio_fifo);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int start_frame(AVFilterLink *link, AVFilterBufferRef *buf)
|
static int filter_frame(AVFilterLink *link, AVFilterBufferRef *buf)
|
||||||
{
|
{
|
||||||
BufferSinkContext *s = link->dst->priv;
|
BufferSinkContext *s = link->dst->priv;
|
||||||
|
|
||||||
// av_assert0(!s->cur_buf);
|
// av_assert0(!s->cur_buf);
|
||||||
s->cur_buf = buf;
|
s->cur_buf = buf;
|
||||||
link->cur_buf = NULL;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -144,7 +143,7 @@ static const AVFilterPad avfilter_vsink_buffer_inputs[] = {
|
|||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.start_frame = start_frame,
|
.filter_frame = filter_frame,
|
||||||
.min_perms = AV_PERM_READ,
|
.min_perms = AV_PERM_READ,
|
||||||
.needs_fifo = 1
|
.needs_fifo = 1
|
||||||
},
|
},
|
||||||
@ -169,7 +168,7 @@ static const AVFilterPad avfilter_asink_abuffer_inputs[] = {
|
|||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_AUDIO,
|
.type = AVMEDIA_TYPE_AUDIO,
|
||||||
.filter_frame = start_frame,
|
.filter_frame = filter_frame,
|
||||||
.min_perms = AV_PERM_READ,
|
.min_perms = AV_PERM_READ,
|
||||||
.needs_fifo = 1
|
.needs_fifo = 1
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user