[FFmpeg-devel] [libav-devel] [RFC] av_get_bits_per_sample() questions

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Jun 6 01:48:33 CEST 2011


On date Sunday 2011-06-05 18:22:06 -0400, Justin Ruggles encoded:
> On 06/05/2011 05:33 PM, Justin Ruggles wrote:
> 
> > On 06/05/2011 05:00 PM, Stefano Sabatini wrote:
[...]
> >> In case the sense of the text above was not clear, I meant: do you
> >> have some reason to suppose that we may add a sample format with a non
> >> integer number of bytes?
> > 
> > no.
> 
> Well, I guess maybe someday we might encounter some hardware device that
> uses fractional bits per sample, in which case it might be nice to
> convert to such a theoretical sample format in our theoretical future
> audio conversion lib.  So maybe we should have both variants in
> libavutil to avoid dividing by 8 everywhere now and also stay adaptable
> to future unknowns.

Check attached patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-samplefmt-add-av_get_bytes_per_sample.patch
Type: text/x-diff
Size: 3409 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110606/f84d2f8c/attachment.bin>


More information about the ffmpeg-devel mailing list