|
@@ -47,7 +47,7 @@ static av_cold int pcm_encode_init(AVCodecContext *avctx) |
|
|
|
|
|
|
|
|
avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id); |
|
|
avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id); |
|
|
avctx->block_align = avctx->channels * avctx->bits_per_coded_sample / 8; |
|
|
avctx->block_align = avctx->channels * avctx->bits_per_coded_sample / 8; |
|
|
avctx->bit_rate = avctx->block_align * avctx->sample_rate * 8; |
|
|
|
|
|
|
|
|
avctx->bit_rate = avctx->block_align * 8LL * avctx->sample_rate; |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|