diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-03-10 15:16:41 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-03-10 15:16:41 +0000 |
commit | e2263827d5272576e8f2893254e054476b01ee19 (patch) | |
tree | 05c1026d7640e2eb3b661a8d2b68c8156d91702a /libavcodec/mp3lameaudio.c | |
parent | 9d36bdc9beb7b910b9166c40a2d3e76373d0f7cf (diff) | |
download | ffmpeg-e2263827d5272576e8f2893254e054476b01ee19.tar.gz |
- Bug fix on output sample rate for lame MP3 encoding.
Originally committed as revision 327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mp3lameaudio.c')
-rw-r--r-- | libavcodec/mp3lameaudio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mp3lameaudio.c b/libavcodec/mp3lameaudio.c index c4b72c5fae..763a2a316c 100644 --- a/libavcodec/mp3lameaudio.c +++ b/libavcodec/mp3lameaudio.c @@ -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); |