[Libav-user] Bytes per sample for different audio formats

Taha Ansari mtaha.ansari at gmail.com
Sat Jan 18 20:54:07 CET 2014


On Jan 17, 2014 8:45 PM, "Carl Eugen Hoyos" <cehoyos at ag.or.at> wrote:
>
> Taha Ansari <mtaha.ansari at ...> writes:
>
> > While investigation few issues with adopted audio
> > trans-coding techniques, I discovered that call to
> > av_get_bytes_per_sample() for AV_SAMPLE_FMT_S16
> > returns '2',
>
> AV_SAMPLE_FMT_S16 -> 16 bit signed
> 16 bit == 2 bytes
>
> > and for AV_SAMPLE_FMT_FLTP returns '4'.
>
> AV_SAMPLE_FMT_FLTP -> float (in the C sense)
> float == 4 bytes
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

I see - many thanks for the clarification!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140119/5378b30b/attachment.html>


More information about the Libav-user mailing list