<div dir="ltr"><div class="gmail_default" style="font-size:large">Because I'm using Ffmpeg to decode audio to pcm, so I can encode it with my own format. I'll look into it, thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 30, 2014 at 10:38 AM, wm4 <span dir="ltr"><<a href="mailto:nfxjfg@googlemail.com" target="_blank">nfxjfg@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, 29 Sep 2014 20:31:49 -0400<br>
Marcus Johnson <<a href="mailto:bumblebritches57@gmail.com">bumblebritches57@gmail.com</a>> wrote:<br>
<br>
> I'm trying to decode audio using libavformat and codec, it's working fine<br>
> so far, but I'm having trouble getting the decoded buffer into a single<br>
> array to hold all samples, I read that there's a function called<br>
> avpicture_layout, and that's basically exactly what I need, except it's for<br>
> AVPicture, and I need it for AVFrame, what do I do? I see nothing like that<br>
> in the docs.<br>
<br>
</div></div>av_samples_fill_arrays() does the same thing. It doesn't take an<br>
AVFrame directly, so you still have to do something manually.<br>
<br>
I wonder why you need a single buffer, though...<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div>