From: ddennedy Date: Tue, 25 Nov 2008 03:48:01 +0000 (+0000) Subject: producer_avformat.c: fix to previous commit to still allow compilation on version... X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=c6758a72797a89276187b8fc179279e6945da4b2;hp=4bb099f9f13875393e0392a49be0e49de18ef5cc;p=melted 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 --- 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 )