comparison mp3lameaudio.c @ 2841:bceeca1bb30f libavcodec

vbr audio encode patch by (Justin Ruggles: jruggle, earthlink net) with changes by me int->float as video uses float too remove silent cliping to some per codec range, this should result in an error instead remove change to utils.c as its inconsistant with video
author michael
date Sun, 21 Aug 2005 20:27:00 +0000
parents e25782262d7d
children ef2149182f1c
comparison
equal deleted inserted replaced
2840:22eec5a1b043 2841:bceeca1bb30f
51 /* lame 3.91 dies on quality != 5 */ 51 /* lame 3.91 dies on quality != 5 */
52 lame_set_quality(s->gfp, 5); 52 lame_set_quality(s->gfp, 5);
53 /* lame 3.91 doesn't work in mono */ 53 /* lame 3.91 doesn't work in mono */
54 lame_set_mode(s->gfp, JOINT_STEREO); 54 lame_set_mode(s->gfp, JOINT_STEREO);
55 lame_set_brate(s->gfp, avctx->bit_rate/1000); 55 lame_set_brate(s->gfp, avctx->bit_rate/1000);
56 if(avctx->flags & CODEC_FLAG_QSCALE) {
57 lame_set_brate(s->gfp, 0);
58 lame_set_VBR(s->gfp, vbr_default);
59 lame_set_VBR_q(s->gfp, avctx->global_quality / (float)FF_QP2LAMBDA);
60 }
56 lame_set_bWriteVbrTag(s->gfp,0); 61 lame_set_bWriteVbrTag(s->gfp,0);
57 if (lame_init_params(s->gfp) < 0) 62 if (lame_init_params(s->gfp) < 0)
58 goto err_close; 63 goto err_close;
59 64
60 avctx->frame_size = lame_get_framesize(s->gfp); 65 avctx->frame_size = lame_get_framesize(s->gfp);