[FFmpeg-devel] [PATCH] set bits_per_raw_sample in pcm decoder

Justin Ruggles justin.ruggles
Sun Jun 6 20:00:13 CEST 2010


Hi,

The pcm decoder needs to set bits_per_raw_sample when sample_fmt is
SAMPLE_FMT_S32.  This information can then be passed to the encoder,
which can make use of it (ffmpeg.c does this).

In particular, lossless codecs that can encode 24-bit audio need to
write stream and/or frame values with the bits per sample of the source.
 Also, the checksums (e.g. MD5 for FLAC, CRC32 for ALS) are based on
3-byte source data for 24-bit audio.  The encoder cannot distinguish
between 24-bit and 32-bit source without having bits_per_raw_sample set.

-Justin

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pcm_bits_per_raw_sample.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100606/0bfeffc1/attachment.asc>



More information about the ffmpeg-devel mailing list