You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
pcm_bluray: set bits_per_raw_sample for > 16-bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
committed by
Derek Buitenhuis
parent
4bf2e7c5f1
commit
ff80c68264
@@ -75,6 +75,7 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 :
|
avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 :
|
||||||
AV_SAMPLE_FMT_S32;
|
AV_SAMPLE_FMT_S32;
|
||||||
|
avctx->bits_per_raw_sample = avctx->bits_per_coded_sample;
|
||||||
|
|
||||||
/* get the sample rate. Not all values are known or exist. */
|
/* get the sample rate. Not all values are known or exist. */
|
||||||
switch (header[2] & 0x0f) {
|
switch (header[2] & 0x0f) {
|
||||||
|
Reference in New Issue
Block a user