# HG changeset patch # User bcoudurier # Date 1220303585 0 # Node ID 3d1ffb62e9337fa6b949ad43ae659a6933242330 # Parent e5f7a43f63ae273206c2c8383d173c1e496b901e make pcm encoder setting bits_per_sample field diff -r e5f7a43f63ae -r 3d1ffb62e933 pcm.c --- 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;