From 3fa9a999c1fe44a1592c9b4c01956ff509b86f8a Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 22 Feb 2012 18:32:19 -0500 Subject: roqaudioenc: set correct bit rate --- libavcodec/roqaudioenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/roqaudioenc.c') diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c index 9137b02035..6f36965c8b 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -65,6 +65,8 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx) } avctx->frame_size = ROQ_FRAME_SIZE; + avctx->bit_rate = (ROQ_HEADER_SIZE + ROQ_FRAME_SIZE * avctx->channels) * + (22050 / ROQ_FRAME_SIZE) * 8; context->frame_buffer = av_malloc(8 * ROQ_FRAME_SIZE * avctx->channels * sizeof(*context->frame_buffer)); -- cgit v1.2.3