1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 327 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Juanjo 2002-03-10 15:16:41 +00:00
parent 9d36bdc9be
commit e2263827d5

View File

@ -42,6 +42,7 @@ static int MP3lame_encode_init(AVCodecContext *avctx)
if ((s->gfp = lame_init()) == NULL) if ((s->gfp = lame_init()) == NULL)
goto err; goto err;
lame_set_in_samplerate(s->gfp, avctx->sample_rate); 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_set_num_channels(s->gfp, avctx->channels);
/* lame 3.91 dies on quality != 5 */ /* lame 3.91 dies on quality != 5 */
lame_set_quality(s->gfp, 5); lame_set_quality(s->gfp, 5);