[FFmpeg-devel] [PATCH 01/16] vmdaudio: fix raw_block_size calculation.

Michael Niedermayer michaelni
Tue Feb 22 20:26:59 CET 2011


On Tue, Feb 22, 2011 at 08:21:20PM +0100, Reimar D?ffinger wrote:
> On Tue, Feb 22, 2011 at 02:05:20PM -0500, Justin Ruggles wrote:
> > -        int raw_block_size = s->block_align * s->bits / 8;
> > +        int raw_block_size = s->block_align *
> > +                             (av_get_bits_per_sample_fmt(avctx->sample_fmt) / 8);
> 
> WTF is "bits per sample format"? That function really has a braindead name.

The number of bits in the given sample format, like 16 for SAMPLE_FMT_S16:


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110222/37a72753/attachment.pgp>



More information about the ffmpeg-devel mailing list