summaryrefslogtreecommitdiff
path: root/libavcodec/wmaenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-02 12:47:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-02 12:48:29 +0200
commitfbdb2059684ff27be61cfe40446e68cb2f9a12f8 (patch)
tree8da054124226b86aa6bcc6ebf6dbd5bface18650 /libavcodec/wmaenc.c
parentc4e0e74438e497fa4f5fec6c186ffb33152c4898 (diff)
downloadffmpeg-fbdb2059684ff27be61cfe40446e68cb2f9a12f8.tar.gz
wmaenc: dont mess with the bitrate.
The bitrate is not writeable by an encoder. Fixes generation of invalid wma Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmaenc.c')
-rw-r--r--libavcodec/wmaenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index b31137a2d9..18dd283d37 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -82,8 +82,6 @@ static int encode_init(AVCodecContext * avctx){
(avctx->sample_rate * 8);
s->block_align = FFMIN(s->block_align, MAX_CODED_SUPERFRAME_SIZE);
avctx->block_align = s->block_align;
- avctx->bit_rate = avctx->block_align * 8LL * avctx->sample_rate /
- s->frame_len;
//av_log(NULL, AV_LOG_ERROR, "%d %d %d %d\n", s->block_align, avctx->bit_rate, s->frame_len, avctx->sample_rate);
avctx->frame_size = avctx->delay = s->frame_len;