mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
pcm_bluray: set bits_per_raw_sample for > 16-bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
463c8d8621
commit
84e0553c1c
@ -75,6 +75,8 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx,
|
||||
}
|
||||
avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 :
|
||||
AV_SAMPLE_FMT_S32;
|
||||
if (avctx->sample_fmt == 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. */
|
||||
switch (header[2] & 0x0f) {
|
||||
|
Loading…
Reference in New Issue
Block a user