[FFmpeg-devel] [PATCH] Add get_audio_buffer_ref to lavfi audio framework

S.N. Hemanth Meenakshisundaram smeenaks
Sun Sep 19 20:50:08 CEST 2010

Fixed the get_audio_buffer_ref function so that it doesn't fill in the
buf->free function pointer by default. The client now needs to supply
the free function if providing the buffer.

If get_audio_buffer is called, this in turn allocates a buffer, calls
get_audio_buffer_ref and then fills in the free function pointer to
point to avfilter_default_free_buffer.

So there's no need for a flag or treating refcount differently.

 libavfilter/avfilter.c |   20 ++++++++++++++++++++
 libavfilter/avfilter.h |   34 ++++++++++++++++++++++++++++++++++
 libavfilter/defaults.c |   42 ++++++++++++++++++++++++++++--------------
 3 files changed, 82 insertions(+), 14 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-get_audio_buffer_ref-to-lavfi-audio-framework.patch
Type: text/x-patch
Size: 7562 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100919/0c29e124/attachment.bin>

More information about the ffmpeg-devel mailing list