The vsrc_buffer.h is not installed since commit 0b3b95813576, so there is no point into keeping it around. The buffersrc.h API, which is more powerful, should be used instead.
Showing the changes to libavfilter/src_buffer.c (1 of 4 files). Show all
Unified · Split
| @@ -30,7 +30,6 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "audio.h" |
| 31 | 31 | #include "avcodec.h" |
| 32 | 32 | #include "buffersrc.h" |
| 33 | −#include "vsrc_buffer.h" | |
| 34 | 33 | #include "asrc_abuffer.h" |
| 35 | 34 | #include "libavutil/audioconvert.h" |
| 36 | 35 | #include "libavutil/avstring.h" |
| @@ -67,27 +66,6 @@ static void buf_free(AVFilterBuffer *ptr) · 30 unmodified lines | ||
| 67 | 66 | return; |
| 68 | 67 | } |
| 69 | 68 | |
| 70 | −int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_filter, | |
| 71 | − AVFilterBufferRef *picref, int flags) | |
| 72 | −{ | |
| 73 | − return av_buffersrc_add_ref(buffer_filter, picref, 0); | |
| 74 | −} | |
| 75 | − | |
| 76 | −#if CONFIG_AVCODEC | |
| 77 | −#include "avcodec.h" | |
| 78 | − | |
| 79 | −int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src, | |
| 80 | − const AVFrame *frame, int flags) | |
| 81 | −{ | |
| 82 | − return av_buffersrc_add_frame(buffer_src, frame, 0); | |
| 83 | −} | |
| 84 | −#endif | |
| 85 | − | |
| 86 | −unsigned av_vsrc_buffer_get_nb_failed_requests(AVFilterContext *buffer_src) | |
| 87 | −{ | |
| 88 | − return ((BufferSourceContext *)buffer_src->priv)->nb_failed_requests; | |
| 89 | −} | |
| 90 | − | |
| 91 | 69 | int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *ctx, |
| 92 | 70 | AVFilterBufferRef *samplesref, |
| 93 | 71 | int av_unused flags) |