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

Michael Niedermayer michaelni
Sat Jan 15 14:24:35 CET 2011


On Sat, Jan 15, 2011 at 02:27:03AM +0100, Stefano Sabatini wrote:
> ---
>  libavcore/audioconvert.c |   14 ++++++++++++++
>  libavcore/audioconvert.h |   21 +++++++++++++++++++++
>  2 files changed, 35 insertions(+), 0 deletions(-)
> 
> diff --git a/libavcore/audioconvert.c b/libavcore/audioconvert.c
> index 1c6a511..7a46a3e 100644
> --- a/libavcore/audioconvert.c
> +++ b/libavcore/audioconvert.c
> @@ -166,3 +166,17 @@ int av_samples_fill_pointers(uint8_t *pointers[8], uint8_t *buf, int buf_size,
>  
>      return per_channel_size / sample_size;
>  }
> +
> +int av_samples_fill_arrays(uint8_t *data[8], int linesizes[8],
> +                           uint8_t *buf, int buf_size,
> +                           enum AVSampleFormat sample_fmt, int planar,
> +                           int64_t channel_layout, int nb_channels)
> +{

again channel_layout has nothing to do with what the code does

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

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/20110115/51109814/attachment.pgp>



More information about the ffmpeg-devel mailing list