From c6758a72797a89276187b8fc179279e6945da4b2 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Tue, 25 Nov 2008 03:48:01 +0000 Subject: [PATCH] producer_avformat.c: fix to previous commit to still allow compilation on version of libavcodec older than 51.71.0 (untested). git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1243 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/avformat/producer_avformat.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 4039d1e..1dfb5a9 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -1044,6 +1044,7 @@ static int producer_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_form mlt_properties_set_data( properties, "decode_buffer", decode_buffer, 0, ( mlt_destructor )mlt_pool_release, NULL ); } +#if (LIBAVCODEC_VERSION_INT >= ((51<<16)+(71<<8)+0)) // Check for format converter buffer and create if necessary if ( resample && convert && convert_buffer == NULL ) { @@ -1053,6 +1054,7 @@ static int producer_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_form // And store it on properties for reuse mlt_properties_set_data( properties, "convert_buffer", convert_buffer, 0, ( mlt_destructor )mlt_pool_release, NULL ); } +#endif // Seek if necessary if ( position != expected ) -- 1.7.4.4