[Libav-user] (no subject)

wm4 nfxjfg at googlemail.com
Tue Sep 30 16:38:39 CEST 2014

On Mon, 29 Sep 2014 20:31:49 -0400
Marcus Johnson <bumblebritches57 at gmail.com> wrote:

> I'm trying to decode audio using libavformat and codec, it's working fine
> so far, but I'm having trouble getting the decoded buffer into a single
> array to hold all samples, I read that there's a function called
> avpicture_layout, and that's basically exactly what I need, except it's for
> AVPicture, and I need it for AVFrame, what do I do? I see nothing like that
> in the docs.

av_samples_fill_arrays() does the same thing. It doesn't take an
AVFrame directly, so you still have to do something manually.

I wonder why you need a single buffer, though...

More information about the Libav-user mailing list