Build modification to ffmpeg/avformat
[melted] / src / modules / avformat / factory.c
index 089a3e2..49d6b93 100644 (file)
@@ -24,6 +24,7 @@
 #include <framework/mlt_factory.h>
 #include "producer_avformat.h"
 #include "consumer_avformat.h"
+#include "filter_avcolour_space.h"
 #include "filter_avdeinterlace.h"
 #include "filter_avresample.h"
 
@@ -86,6 +87,7 @@ static void avformat_init( )
                pthread_mutex_init( &avformat_mutex, NULL );
                av_register_all( );
                mlt_factory_register_for_clean_up( NULL, avformat_destroy );
+               av_log_set_level( -1 );
        }
 }
 
@@ -100,8 +102,12 @@ void *mlt_create_producer( char *id, void *arg )
 void *mlt_create_filter( char *id, void *arg )
 {
        avformat_init( );
+       if ( !strcmp( id, "avcolour_space" ) )
+               return filter_avcolour_space_init( arg );
+#ifdef USE_MMX
        if ( !strcmp( id, "avdeinterlace" ) )
                return filter_avdeinterlace_init( arg );
+#endif
        if ( !strcmp( id, "avresample" ) )
                return filter_avresample_init( arg );
        return NULL;