diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-22 18:32:19 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-25 11:49:43 -0500 |
commit | 3fa9a999c1fe44a1592c9b4c01956ff509b86f8a (patch) | |
tree | 9b304a217b9fe0c39e63ea1930731814b2d2a163 | |
parent | cf57c78b774a71e8379d73e892880a2df1bf93ad (diff) | |
download | ffmpeg-3fa9a999c1fe44a1592c9b4c01956ff509b86f8a.tar.gz |
roqaudioenc: set correct bit rate
-rw-r--r-- | libavcodec/roqaudioenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |