[FFmpeg-devel] [PATCH] set bits_per_raw_sample in pcm decoder
Sun Jun 6 20:00:13 CEST 2010
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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel