[FFmpeg-devel] [PATCH] Implement avfilter_get_audio_buffer_ref_from_arrays().

Michael Niedermayer michaelni
Thu Jan 13 01:09:05 CET 2011


On Wed, Jan 12, 2011 at 10:34:45PM +0100, Stefano Sabatini wrote:
> ---
>  libavfilter/avfilter.c |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
>  libavfilter/avfilter.h |   17 +++++++++++++++++
>  2 files changed, 65 insertions(+), 0 deletions(-)
> 
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index ebb2165..a7d7de0 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -23,6 +23,7 @@
>  
>  #include "libavutil/pixdesc.h"
>  #include "libavutil/rational.h"
> +#include "libavcore/audioconvert.h"
>  #include "libavcore/imgutils.h"
>  #include "avfilter.h"
>  #include "internal.h"
> @@ -326,6 +327,53 @@ AVFilterBufferRef *avfilter_get_audio_buffer(AVFilterLink *link, int perms,
>      return ret;
>  }
>  
> +AVFilterBufferRef *
> +avfilter_get_audio_buffer_ref_from_arrays(uint8_t *data[8], int linesize[8], int perms,
> +                                          enum AVSampleFormat sample_fmt, int size,
> +                                          int64_t channel_layout, int planar)

this is bad as we might know how many channels but not the layout

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110113/988cbe6d/attachment.pgp>



More information about the ffmpeg-devel mailing list