[FFmpeg-cvslog] Do not set the lame quality if the user didn't request it.

Carl Eugen Hoyos git at videolan.org
Wed Oct 29 02:55:39 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Oct 29 01:31:06 2014 +0100| [26122145559f55b6061281bd96a66cebdc5ac33f] | committer: Carl Eugen Hoyos

Do not set the lame quality if the user didn't request it.

This makes FFmpeg's mp3 output more similar to lame's output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26122145559f55b6061281bd96a66cebdc5ac33f
---

 libavcodec/libmp3lame.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 661d1c0..d8a444d 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -106,9 +106,7 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
     lame_set_out_samplerate(s->gfp, avctx->sample_rate);
 
     /* algorithmic quality */
-    if (avctx->compression_level == FF_COMPRESSION_DEFAULT)
-        lame_set_quality(s->gfp, 5);
-    else
+    if (avctx->compression_level != FF_COMPRESSION_DEFAULT)
         lame_set_quality(s->gfp, avctx->compression_level);
 
     /* rate control */



More information about the ffmpeg-cvslog mailing list