<div dir="ltr">It is working after suggested changes!. Thank you.</div><div class="gmail_extra"><br><div class="gmail_quote">On 5 January 2016 at 22:21, dhenry <span dir="ltr"><<a href="mailto:dhenry@movenetworks.com" target="_blank">dhenry@movenetworks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">swr_convert() may buffer converted data, so esp. if you are converting sample<br>
rates, there may not be any data available after the first call.<br>
Also, in your call to utility_init_output_frame(), you send<br>
DEFAULT_AAC_FRAME_SIZE as the output nb_samples. You should probably use<br>
frame->nb_samples,<br>
especially because when you allocate the output frame with<br>
av_samples_alloc(&outputBuffer...),<br>
you use frame->nb_samples as the sample size.<br>
<br>
If your processing post-swr_convert() is crashing, and  audio<br>
AV_SAMPLE_FMT_FLTP -> AV_SAMPLE_FMT_FLTP doesn't crash, then it suggests<br>
that your output buffer may not be sized correctly.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://libav-users.943685.n4.nabble.com/Libav-user-Problem-converting-from-AV-SAMPLE-FMT-S16-to-AV-SAMPLE-FMT-FLTP-tp4661744p4661745.html" rel="noreferrer" target="_blank">http://libav-users.943685.n4.nabble.com/Libav-user-Problem-converting-from-AV-SAMPLE-FMT-S16-to-AV-SAMPLE-FMT-FLTP-tp4661744p4661745.html</a><br>
Sent from the libav-users mailing list archive at Nabble.com.<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" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div>