X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2Ffactory.c;h=49d6b93dc3b0d45cd6f442600e9b6c322f517245;hb=cdf7162ebc07120e92166a0e43eaba21ecca25ba;hp=bf01e9589b0e924bcf624a964693487ddf809804;hpb=c287a51b7a4c2cc437256c178a5eb2e7775d34fa;p=melted diff --git a/src/modules/avformat/factory.c b/src/modules/avformat/factory.c index bf01e95..49d6b93 100644 --- a/src/modules/avformat/factory.c +++ b/src/modules/avformat/factory.c @@ -24,9 +24,12 @@ #include #include "producer_avformat.h" #include "consumer_avformat.h" +#include "filter_avcolour_space.h" +#include "filter_avdeinterlace.h" +#include "filter_avresample.h" // ffmpeg Header files -#include +#include // A static flag used to determine if avformat has been initialised static int avformat_initialised = 0; @@ -84,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 ); } } @@ -97,6 +101,15 @@ 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; }