config mods; avformat static or shared build; corrections to sdl
[melted] / src / modules / avformat / factory.c
index bf01e95..089a3e2 100644 (file)
 #include <framework/mlt_factory.h>
 #include "producer_avformat.h"
 #include "consumer_avformat.h"
+#include "filter_avdeinterlace.h"
+#include "filter_avresample.h"
 
 // ffmpeg Header files
-#include <ffmpeg/avformat.h>
+#include <avformat.h>
 
 // A static flag used to determine if avformat has been initialised
 static int avformat_initialised = 0;
@@ -97,6 +99,11 @@ void *mlt_create_producer( char *id, void *arg )
 
 void *mlt_create_filter( char *id, void *arg )
 {
+       avformat_init( );
+       if ( !strcmp( id, "avdeinterlace" ) )
+               return filter_avdeinterlace_init( arg );
+       if ( !strcmp( id, "avresample" ) )
+               return filter_avresample_init( arg );
        return NULL;
 }