Commit 26122145 authored by Carl Eugen Hoyos's avatar 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.
parent 1a25c336
...@@ -106,9 +106,7 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx) ...@@ -106,9 +106,7 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
lame_set_out_samplerate(s->gfp, avctx->sample_rate); lame_set_out_samplerate(s->gfp, avctx->sample_rate);
/* algorithmic quality */ /* algorithmic quality */
if (avctx->compression_level == FF_COMPRESSION_DEFAULT) if (avctx->compression_level != FF_COMPRESSION_DEFAULT)
lame_set_quality(s->gfp, 5);
else
lame_set_quality(s->gfp, avctx->compression_level); lame_set_quality(s->gfp, avctx->compression_level);
/* rate control */ /* rate control */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment