mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mxfdec: consider QuantizationBits between 17 and 24 to be pcm_s24*
This fixes playback of BRD38772509.mxf. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
This commit is contained in:
parent
adff77f28c
commit
6547fd9264
@ -831,12 +831,12 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
|
|||||||
st->codec->sample_rate = descriptor->sample_rate.num / descriptor->sample_rate.den;
|
st->codec->sample_rate = descriptor->sample_rate.num / descriptor->sample_rate.den;
|
||||||
/* TODO: implement CODEC_ID_RAWAUDIO */
|
/* TODO: implement CODEC_ID_RAWAUDIO */
|
||||||
if (st->codec->codec_id == CODEC_ID_PCM_S16LE) {
|
if (st->codec->codec_id == CODEC_ID_PCM_S16LE) {
|
||||||
if (descriptor->bits_per_sample == 24)
|
if (descriptor->bits_per_sample > 16 && descriptor->bits_per_sample <= 24)
|
||||||
st->codec->codec_id = CODEC_ID_PCM_S24LE;
|
st->codec->codec_id = CODEC_ID_PCM_S24LE;
|
||||||
else if (descriptor->bits_per_sample == 32)
|
else if (descriptor->bits_per_sample == 32)
|
||||||
st->codec->codec_id = CODEC_ID_PCM_S32LE;
|
st->codec->codec_id = CODEC_ID_PCM_S32LE;
|
||||||
} else if (st->codec->codec_id == CODEC_ID_PCM_S16BE) {
|
} else if (st->codec->codec_id == CODEC_ID_PCM_S16BE) {
|
||||||
if (descriptor->bits_per_sample == 24)
|
if (descriptor->bits_per_sample > 16 && descriptor->bits_per_sample <= 24)
|
||||||
st->codec->codec_id = CODEC_ID_PCM_S24BE;
|
st->codec->codec_id = CODEC_ID_PCM_S24BE;
|
||||||
else if (descriptor->bits_per_sample == 32)
|
else if (descriptor->bits_per_sample == 32)
|
||||||
st->codec->codec_id = CODEC_ID_PCM_S32BE;
|
st->codec->codec_id = CODEC_ID_PCM_S32BE;
|
||||||
|
Loading…
Reference in New Issue
Block a user