Mercurial > libavcodec.hg
comparison aacenc.c @ 9944:c5ca5e520fe1 libavcodec
Change fminf/fmaxf to FFMIN/FFMAX to fix the build on broken operating systems.
author | alexc |
---|---|
date | Thu, 09 Jul 2009 17:22:59 +0000 |
parents | f91d6810f983 |
children | 4b6f16da6652 |
comparison
equal
deleted
inserted
replaced
9943:2cd0d1447bd3 | 9944:c5ca5e520fe1 |
---|---|
602 | 602 |
603 // rate control stuff | 603 // rate control stuff |
604 if (!(avctx->flags & CODEC_FLAG_QSCALE)) { | 604 if (!(avctx->flags & CODEC_FLAG_QSCALE)) { |
605 float ratio = avctx->bit_rate * 1024.0f / avctx->sample_rate / avctx->frame_bits; | 605 float ratio = avctx->bit_rate * 1024.0f / avctx->sample_rate / avctx->frame_bits; |
606 s->lambda *= ratio; | 606 s->lambda *= ratio; |
607 s->lambda = fminf(s->lambda, 65536.f); | 607 s->lambda = FFMIN(s->lambda, 65536.f); |
608 } | 608 } |
609 | 609 |
610 if (!data) | 610 if (!data) |
611 s->last_frame = 1; | 611 s->last_frame = 1; |
612 memcpy(s->samples, s->samples + 1024 * avctx->channels, | 612 memcpy(s->samples, s->samples + 1024 * avctx->channels, |