diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-08-20 13:30:44 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-08-22 19:58:39 -0400 |
commit | 890fddd0ea16aa8fe423820ae83ae1f67978921b (patch) | |
tree | 7b13e0ccba461c8982b6ad0998c92e80a0d84ca5 /libavcodec/vorbisenc.c | |
parent | e981215944876333d6da2a029e4b697e4831048b (diff) | |
download | ffmpeg-890fddd0ea16aa8fe423820ae83ae1f67978921b.tar.gz |
vorbisenc: fix quality parameter
This generates output with bitrates similar to libvorbis for a given quality
value.
Diffstat (limited to 'libavcodec/vorbisenc.c')
-rw-r--r-- | libavcodec/vorbisenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c index 4fd8c322c2..cdb3af059a 100644 --- a/libavcodec/vorbisenc.c +++ b/libavcodec/vorbisenc.c @@ -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) |