|
@@ -2263,7 +2263,7 @@ static void mov_parse_stsd_audio(MOVContext *c, AVIOContext *pb, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bits_per_sample = av_get_bits_per_sample(st->codecpar->codec_id); |
|
|
bits_per_sample = av_get_bits_per_sample(st->codecpar->codec_id); |
|
|
if (bits_per_sample) { |
|
|
|
|
|
|
|
|
if (bits_per_sample && (bits_per_sample >> 3) * (uint64_t)st->codecpar->channels <= INT_MAX) { |
|
|
st->codecpar->bits_per_coded_sample = bits_per_sample; |
|
|
st->codecpar->bits_per_coded_sample = bits_per_sample; |
|
|
sc->sample_size = (bits_per_sample >> 3) * st->codecpar->channels; |
|
|
sc->sample_size = (bits_per_sample >> 3) * st->codecpar->channels; |
|
|
} |
|
|
} |
|
|