mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vorbisenc: fix quality parameter
This generates output with bitrates similar to libvorbis for a given quality value.
This commit is contained in:
parent
e981215944
commit
890fddd0ea
@ -1181,9 +1181,9 @@ static av_cold int vorbis_encode_init(AVCodecContext *avccontext)
|
||||
goto error;
|
||||
|
||||
if (avccontext->flags & CODEC_FLAG_QSCALE)
|
||||
venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
|
||||
venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;
|
||||
else
|
||||
venc->quality = 0.03;
|
||||
venc->quality = 3.0;
|
||||
venc->quality *= venc->quality;
|
||||
|
||||
if ((ret = put_main_header(venc, (uint8_t**)&avccontext->extradata)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user