Commit 254c771d authored by pulento's avatar pulento

- Bug fix on output sample rate for lame MP3 encoding.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@327 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e08bce5c
......@@ -42,6 +42,7 @@ static int MP3lame_encode_init(AVCodecContext *avctx)
if ((s->gfp = lame_init()) == NULL)
goto err;
lame_set_in_samplerate(s->gfp, avctx->sample_rate);
lame_set_out_samplerate(s->gfp, avctx->sample_rate);
lame_set_num_channels(s->gfp, avctx->channels);
/* lame 3.91 dies on quality != 5 */
lame_set_quality(s->gfp, 5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment