Mercurial > libavcodec.hg
changeset 7770:3d1ffb62e933 libavcodec
make pcm encoder setting bits_per_sample field
author | bcoudurier |
---|---|
date | Mon, 01 Sep 2008 21:13:05 +0000 |
parents | e5f7a43f63ae |
children | 58fdf1638bc4 |
files | pcm.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pcm.c Mon Sep 01 14:33:54 2008 +0000 +++ b/pcm.c Mon Sep 01 21:13:05 2008 +0000 @@ -118,7 +118,8 @@ break; } - avctx->block_align = avctx->channels * av_get_bits_per_sample(avctx->codec->id)/8; + avctx->bits_per_sample = av_get_bits_per_sample(avctx->codec->id); + avctx->block_align = avctx->channels * avctx->bits_per_sample/8; avctx->coded_frame= avcodec_alloc_frame(); avctx->coded_frame->key_frame= 1;