alacdec: set bits_per_raw_sample

This commit is contained in:
Justin Ruggles 2012-10-21 19:18:07 -04:00
parent c3e15f7b39
commit 46a86c6194

View File

@ -574,6 +574,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
alac->sample_size); alac->sample_size);
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
} }
avctx->bits_per_raw_sample = alac->sample_size;
if (alac->channels < 1) { if (alac->channels < 1) {
av_log(avctx, AV_LOG_WARNING, "Invalid channel count\n"); av_log(avctx, AV_LOG_WARNING, "Invalid channel count\n");