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

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jan 17 16:42:25 CET 2014


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



More information about the Libav-user mailing list