lavfi: remove vsrc_buffer.h API
The vsrc_buffer.h is not installed since commit 0b3b958135
, so there is
no point into keeping it around.
The buffersrc.h API, which is more powerful, should be used instead.
This commit is contained in:
parent
ab7dbdc92c
commit
bb6effe059
4 changed files with 1 additions and 101 deletions
|
@ -30,7 +30,6 @@
|
|||
#include "audio.h"
|
||||
#include "avcodec.h"
|
||||
#include "buffersrc.h"
|
||||
#include "vsrc_buffer.h"
|
||||
#include "asrc_abuffer.h"
|
||||
#include "libavutil/audioconvert.h"
|
||||
#include "libavutil/avstring.h"
|
||||
|
@ -67,27 +66,6 @@ static void buf_free(AVFilterBuffer *ptr)
|
|||
return;
|
||||
}
|
||||
|
||||
int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_filter,
|
||||
AVFilterBufferRef *picref, int flags)
|
||||
{
|
||||
return av_buffersrc_add_ref(buffer_filter, picref, 0);
|
||||
}
|
||||
|
||||
#if CONFIG_AVCODEC
|
||||
#include "avcodec.h"
|
||||
|
||||
int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src,
|
||||
const AVFrame *frame, int flags)
|
||||
{
|
||||
return av_buffersrc_add_frame(buffer_src, frame, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned av_vsrc_buffer_get_nb_failed_requests(AVFilterContext *buffer_src)
|
||||
{
|
||||
return ((BufferSourceContext *)buffer_src->priv)->nb_failed_requests;
|
||||
}
|
||||
|
||||
int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *ctx,
|
||||
AVFilterBufferRef *samplesref,
|
||||
int av_unused flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue