[FFmpeg-devel] [PATCH] avcodec: Add bits_per_raw_sample to AVCodecParameters
Derek Buitenhuis
derek.buitenhuis at gmail.com
Mon Apr 11 01:40:43 CEST 2016
On 4/11/2016 12:32 AM, Michael Niedermayer wrote:
> The bits_per_raw_sample represents the number of bits of precission per sample.
>
> The field is added at the logical place, not at the end as the code was just
> recently added
>
> This fixes the regression about loosing the audio sample precission information
>
> The change in the fate test checksum un-does the change from the merge
>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
> libavcodec/avcodec.h | 17 +++++++++++++++++
> libavcodec/utils.c | 2 ++
> tests/ref/lavf/ffm | 2 +-
> 3 files changed, 20 insertions(+), 1 deletion(-)
Is this ever used for anything other than identifying 24-bit PCM?
I always wondered why we just didn't have a 24-bit PCM format.
Also, if this is applied, you should update matroskaenc.c to use it.
- Derek
More information about the ffmpeg-devel
mailing list