return filter_avcolour_space_init( arg );
if ( !strcmp( id, "avdeinterlace" ) )
return filter_avdeinterlace_init( arg );
-#if LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0)
+#if defined(FFUDIV) || (LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0))
if ( !strcmp( id, "avresample" ) )
return filter_avresample_init( arg );
#endif
MLT_REGISTER( filter_type, "avcolour_space", create_service );
MLT_REGISTER( filter_type, "avcolor_space", create_service );
MLT_REGISTER( filter_type, "avdeinterlace", create_service );
-#if LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0)
+#if defined(FFUDIV) || (LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0))
MLT_REGISTER( filter_type, "avresample", create_service );
#endif
MLT_REGISTER( filter_type, "swscale", create_service );
#include <libavformat/avformat.h>
#include <libavutil/samplefmt.h>
-#if LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0)
+#if defined(FFUDIV) || (LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0))
+
+#define MAX_AUDIO_FRAME_SIZE (192000) // 1 second of 48khz 32bit audio
+
/** Get the audio.
*/
if ( filter != NULL )
{
// Calculate size of the buffer
- int size = AVCODEC_MAX_AUDIO_FRAME_SIZE * sizeof( int16_t );
+ int size = MAX_AUDIO_FRAME_SIZE * sizeof( int16_t );
// Allocate the buffer
int16_t *buffer = mlt_pool_alloc( size );
return filter;
}
-#endif // LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0)
+#endif // defined(FFUDIV) || (LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0))