avcodec: add av_get_exact_bits_per_sample() function
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 19 Jan 2012 23:36:40 +0000 (18:36 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 5 Mar 2012 18:08:15 +0000 (13:08 -0500)
commit6699d07480f58bc20068b2d90fcd6ca8e3aa46b8
treed31c35afadc3b04f3f81518ac54211de28f1d5aa
parent27c7ca9c12bb42d5c44d46f24cd970469d0ef55a
avcodec: add av_get_exact_bits_per_sample() function

This only returns bits per sample when it is exactly correct. That is, the
codec contains only raw samples with no frame headers or padding. This applies
to basically all PCM codecs and a small subset of ADPCM codecs.
libavcodec/avcodec.h
libavcodec/utils.c