<div dir="ltr">Thanks for the tip.Will look into it.<div><br></div></div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Mar 14, 2018 at 6:48 PM Gonzalo Garramuño <<a href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
El 14/03/18 a las 09:03, Michael IV escribió:<br>
> Hi.I have the following case:<br>
> I am receiving audio stream which consist<br>
>  of 2 channel float 32 (non planar) audio frames. Then I am trying to<br>
> convert those into<br>
> AV_SAMPLE_FMT_FLTP in order to encode with AAC codec. The problem is<br>
> that I receive that data as packets of size different from what my<br>
> AVFrame has. AVFrame for<br>
> this codec has 2 buffers,each 1024 samples,which is 4096 bytes per<br>
> channel (32bit sample size),right? So it looks like I have to fill the<br>
> frame with all 4096 bytes before pushing it into encoder?Is it<br>
> possible to submit 'custom' frames,with different amount of data from<br>
> what I am getting in codec context?<br>
<br>
No.  You need to buffer the data.  Look at the av_audio_fifo* set of<br>
functions for a simple way of doing it.<br>
<br>
--<br>
Gonzalo Garramuño<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div>