projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e981215
)
vorbisenc: fix quality parameter
author
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 20 Aug 2012 17:30:44 +0000
(13:30 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 22 Aug 2012 23:58:39 +0000
(19:58 -0400)
This generates output with bitrates similar to libvorbis for a given quality
value.
libavcodec/vorbisenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/vorbisenc.c
b/libavcodec/vorbisenc.c
index 4fd8c322c2111cb7246dc306d53991c10f8abf1c..cdb3af059ab554b06995a7ab085439920e697aab 100644
(file)
--- 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)