[FFmpeg-devel] [PATCH] ffmpeg libopusdec: fix missing include file in libopusdec.c
Mikulas Patocka
mikulas at twibright.com
Thu Nov 23 21:22:56 EET 2017
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 <mikulas at twibright.com>
---
libavcodec/libopusdec.c | 1 +
1 file changed, 1 insertion(+)
Index: ffmpeg/libavcodec/libopusdec.c
===================================================================
--- ffmpeg.orig/libavcodec/libopusdec.c 2017-11-19 23:44:55.000000000 +0100
+++ ffmpeg/libavcodec/libopusdec.c 2017-11-23 03:54:43.000000000 +0100
@@ -24,6 +24,7 @@
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/ffmath.h"
#include "avcodec.h"
#include "internal.h"
More information about the ffmpeg-devel
mailing list