[Libav-user] Problem converting from AV_SAMPLE_FMT_S16 to AV_SAMPLE_FMT_FLTP

Adev Dev androiddevmar11 at gmail.com
Tue Jan 12 06:55:05 CET 2016

It is working after suggested changes!. Thank you.

On 5 January 2016 at 22:21, dhenry <dhenry at movenetworks.com> wrote:

> swr_convert() may buffer converted data, so esp. if you are converting
> sample
> rates, there may not be any data available after the first call.
> Also, in your call to utility_init_output_frame(), you send
> DEFAULT_AAC_FRAME_SIZE as the output nb_samples. You should probably use
> frame->nb_samples,
> especially because when you allocate the output frame with
> av_samples_alloc(&outputBuffer...),
> you use frame->nb_samples as the sample size.
> If your processing post-swr_convert() is crashing, and  audio
> AV_SAMPLE_FMT_FLTP -> AV_SAMPLE_FMT_FLTP doesn't crash, then it suggests
> that your output buffer may not be sized correctly.
> --
> View this message in context:
> http://libav-users.943685.n4.nabble.com/Libav-user-Problem-converting-from-AV-SAMPLE-FMT-S16-to-AV-SAMPLE-FMT-FLTP-tp4661744p4661745.html
> Sent from the libav-users mailing list archive at Nabble.com.
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160112/944b7368/attachment.html>

More information about the Libav-user mailing list