summaryrefslogtreecommitdiffstats
path: root/core/av_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/av_log.c')
-rw-r--r--core/av_log.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/av_log.c b/core/av_log.c
index 9f6f84a39b..37c308be7a 100644
--- a/core/av_log.c
+++ b/core/av_log.c
@@ -37,6 +37,10 @@
#include <libavdevice/avdevice.h>
#endif
+#ifdef CONFIG_LIBAVFILTER
+#include <libavfilter/avfilter.h>
+#endif
+
static int av_log_level_to_mp_level(int av_level)
{
if (av_level > AV_LOG_VERBOSE)
@@ -118,6 +122,9 @@ void init_libav(void)
av_register_all();
avformat_network_init();
+#ifdef CONFIG_LIBAVFILTER
+ avfilter_register_all();
+#endif
#ifdef CONFIG_LIBAVDEVICE
avdevice_register_all();
#endif