[FFmpeg-devel] [PATCH] Add asrc abuffer - audio source buffer for lavfi

S.N. Hemanth Meenakshisundaram smeenaks
Sun Sep 19 20:53:40 CEST 2010


 Fixed asrc_abuffer to call get_audio_buffer_ref with the buffer given
to it by ffmpeg.c. Thus there's no memcpy.

asrc_abuffer also supplies a function buf_free that will only free the
AVFilterBuffer struct and leave the actual buffer to be freed by
ffmpeg.c or any other client using this filter.

Tested with ffmpeg.c changes that will follow in a separate patch,
passes make test and valgrind.

Also, the sample format and channel layout can be supplied during init
of this filter as either a number or a string.


---
 doc/filters.texi           |   51 +++++++++++++
 libavfilter/Makefile       |    2 +
 libavfilter/allfilters.c   |    2 +
 libavfilter/asrc_abuffer.c |  168 ++++++++++++++++++++++++++++++++++++++++++++
 libavfilter/asrc_abuffer.h |   24 ++++++
 5 files changed, 247 insertions(+), 0 deletions(-)
 create mode 100644 libavfilter/asrc_abuffer.c
 create mode 100644 libavfilter/asrc_abuffer.h



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-asrc-abuffer-audio-source-buffer-for-lavfi.patch
Type: text/x-patch
Size: 10136 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100919/bbf202ca/attachment.bin>



More information about the ffmpeg-devel mailing list