samplefmt: add av_get_bytes_per_sample()

Deprecate av_get_bits_per_sample_fmt(), which was a misnamed function.

For the moment we don't have sample formats with a non-integer number
of bytes, in that case we may need to create a new
av_get_bits_per_sample() function. In the meanwhile we prefer to adopt
this variant, since avoids divisions by 8 all over the place.
This commit is contained in:
Stefano Sabatini 2011-06-06 01:14:50 +02:00 committed by Justin Ruggles
parent 2f37321abc
commit a6703faa15
4 changed files with 29 additions and 4 deletions

View file

@ -13,6 +13,10 @@ libavutil: 2011-04-18
API changes, most recent first:
2011-06-07 - xxxxxxx - lavu 51.4.0 - av_get_bytes_per_sample()
Add av_get_bytes_per_sample() in libavutil/samplefmt.h.
Deprecate av_get_bits_per_sample_fmt().
2011-06-xx - xxxxxxx - lavu 51.3.0 - opt.h
Add av_opt_free convenience function.