Mercurial > libavcodec.hg
diff pcm.c @ 7770:3d1ffb62e933 libavcodec
make pcm encoder setting bits_per_sample field
| author | bcoudurier |
|---|---|
| date | Mon, 01 Sep 2008 21:13:05 +0000 |
| parents | 3db125934e60 |
| children | 4525dcd81357 |
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;
