mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vorbisenc: set quality to a reasonable default.
Fixed Ticket847 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fdffaa6b11
commit
0f6f5e6f16
@ -1164,7 +1164,7 @@ static av_cold int vorbis_encode_init(AVCodecContext *avccontext)
|
|||||||
if (avccontext->flags & CODEC_FLAG_QSCALE)
|
if (avccontext->flags & CODEC_FLAG_QSCALE)
|
||||||
venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
|
venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
|
||||||
else
|
else
|
||||||
venc->quality = 0.03;
|
venc->quality = 8;
|
||||||
venc->quality *= venc->quality;
|
venc->quality *= venc->quality;
|
||||||
|
|
||||||
if ((ret = put_main_header(venc, (uint8_t**)&avccontext->extradata)) < 0)
|
if ((ret = put_main_header(venc, (uint8_t**)&avccontext->extradata)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user