--- a/inotify.c
+++ b/inotify.c
@@ -37,6 +37,7 @@
 #include "linux/inotify.h"
 #include "linux/inotify-syscalls.h"
 #endif
+#include "libav.h"
 
 #include "upnpglobalvars.h"
 #include "inotify.h"
@@ -652,6 +653,7 @@
 	if (setpriority(PRIO_PROCESS, 0, 19) == -1)
 		DPRINTF(E_WARN, L_INOTIFY,  "Failed to reduce inotify thread priority\n");
 	sqlite3_release_memory(1<<31);
+	av_register_all();
         
 	while( !quitting )
 	{