diff options
Diffstat (limited to 'libavcodec/opus.c')
-rw-r--r-- | libavcodec/opus.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/opus.c b/libavcodec/opus.c index 8e896dd..703d2e8 100644 --- a/libavcodec/opus.c +++ b/libavcodec/opus.c @@ -2,20 +2,20 @@ * Copyright (c) 2012 Andrew D'Addesio * Copyright (c) 2013-2014 Mozilla Corporation * - * This file is part of Libav. + * This file is part of FFmpeg. * - * Libav is free software; you can redistribute it and/or + * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * Libav is distributed in the hope that it will be useful, + * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software + * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ @@ -27,6 +27,7 @@ #include <stdint.h> #include "libavutil/error.h" +#include "libavutil/ffmath.h" #include "opus.h" #include "vorbis.h" @@ -333,7 +334,7 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx, s->gain_i = AV_RL16(extradata + 16); if (s->gain_i) - s->gain = pow(10, s->gain_i / (20.0 * 256)); + s->gain = ff_exp10(s->gain_i / (20.0 * 256)); map_type = extradata[18]; if (!map_type) { |