projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf57c78
)
roqaudioenc: set correct bit rate
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 22 Feb 2012 23:32:19 +0000
(18:32 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 25 Feb 2012 16:49:43 +0000
(11:49 -0500)
libavcodec/roqaudioenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/roqaudioenc.c
b/libavcodec/roqaudioenc.c
index
9137b02
..
6f36965
100644
(file)
--- 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));