From 279d2599dd6be8e2030a4543b4efa245fd75de5c Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Thu, 23 Nov 2017 20:22:56 +0100 Subject: [PATCH] ffmpeg libopusdec: fix missing include file in libopusdec.c This patch fixes the following error when compiling mplayer with libopus. libavcodec/libopusdec.c: In function 'libopus_decode_init': libavcodec/libopusdec.c:130:27: error: implicit declaration of function 'ff_exp10'; did you mean 'ff_exp2fi'? [-Werror=implicit-function-declaration] double gain_lin = ff_exp10(gain_db / (20.0 * 256)); ^~~~~~~~ ff_exp2fi Signed-off-by: Mikulas Patocka Signed-off-by: Michael Niedermayer --- libavcodec/libopusdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c index 9dab0fdf65..9b1e002ceb 100644 --- a/libavcodec/libopusdec.c +++ b/libavcodec/libopusdec.c @@ -24,6 +24,7 @@ #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" +#include "libavutil/ffmath.h" #include "avcodec.h" #include "internal.h"