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:
9d36bdc
)
- Bug fix on output sample rate for lame MP3 encoding.
author
Juanjo
<pulento@users.sourceforge.net>
Sun, 10 Mar 2002 15:16:41 +0000
(15:16 +0000)
committer
Juanjo
<pulento@users.sourceforge.net>
Sun, 10 Mar 2002 15:16:41 +0000
(15:16 +0000)
Originally committed as revision 327 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mp3lameaudio.c
patch
|
blob
|
history
diff --git
a/libavcodec/mp3lameaudio.c
b/libavcodec/mp3lameaudio.c
index
c4b72c5
..
763a2a3
100644
(file)
--- 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);