Mercurial > libavcodec.hg
comparison vorbis_enc.c @ 3894:ee58cf698ebc libavcodec
Original Commit: r95 | ods15 | 2006-09-30 22:11:08 +0300 (Sat, 30 Sep 2006) | 3 lines
scale user settable quality for more fine-grainablity
now sane values for -aq is 10-30
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 06:09:06 +0000 |
parents | 7c51248a63d3 |
children | a9d7e965d24f |
comparison
equal
deleted
inserted
replaced
3893:7c51248a63d3 | 3894:ee58cf698ebc |
---|---|
1057 { | 1057 { |
1058 venc_context_t * venc = avccontext->priv_data; | 1058 venc_context_t * venc = avccontext->priv_data; |
1059 | 1059 |
1060 create_vorbis_context(venc, avccontext); | 1060 create_vorbis_context(venc, avccontext); |
1061 | 1061 |
1062 if (avccontext->flags & CODEC_FLAG_QSCALE) venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA; | 1062 if (avccontext->flags & CODEC_FLAG_QSCALE) venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 100.; |
1063 else venc->quality = 0.17; | 1063 else venc->quality = 0.17; |
1064 //if(avccontext->cutoff > 0) cfreq = avccontext->cutoff / 1000.0; | 1064 //if(avccontext->cutoff > 0) cfreq = avccontext->cutoff / 1000.0; |
1065 | 1065 |
1066 avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata); | 1066 avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata); |
1067 | 1067 |