OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f1d3a
)
Allow mono encoding with LAME.
author
Thierry Foucu
<tfoucu@gmail.com>
Tue, 2 Nov 2010 20:29:20 +0000
(20:29 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Tue, 2 Nov 2010 20:29:20 +0000
(20:29 +0000)
Patch by Thierry Foucu, tfoucu gmail
Originally committed as revision 25650 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/libmp3lame.c
patch
|
blob
|
history
diff --git
a/libavcodec/libmp3lame.c
b/libavcodec/libmp3lame.c
index
8420298
..
6915258
100644
(file)
--- a/
libavcodec/libmp3lame.c
+++ b/
libavcodec/libmp3lame.c
@@
-55,8
+55,7
@@
static av_cold int MP3lame_encode_init(AVCodecContext *avctx)
} else {
lame_set_quality(s->gfp, avctx->compression_level);
}
- /* lame 3.91 doesn't work in mono */
- lame_set_mode(s->gfp, JOINT_STEREO);
+ lame_set_mode(s->gfp, s->stereo ? JOINT_STEREO : MONO);
lame_set_brate(s->gfp, avctx->bit_rate/1000);
if(avctx->flags & CODEC_FLAG_QSCALE) {
lame_set_brate(s->gfp, 0);