]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7519: [mod_avformat] fix ffmpeg symbol collision
authorMichael Jerris <mike@jerris.com>
Mon, 4 May 2015 19:49:22 +0000 (15:49 -0400)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:29 +0000 (12:47 -0500)
src/mod/formats/mod_avformat/mod_avformat.c

index 303f1c5a3ad377dc32ebf56f805d4bb546546917..cb4563cd93353ed7cee3cc20a5cab404a380366a 100644 (file)
@@ -155,7 +155,7 @@ static void log_packet(const AVFormatContext *fmt_ctx, const AVPacket *pkt)
        //         pkt->stream_index);
 }
 
-static int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat,
+static int mod_avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat,
                                                                   const char *format, const char *filename)
 {
        AVFormatContext *s = avformat_alloc_context();
@@ -633,7 +633,7 @@ SWITCH_STANDARD_APP(record_av_function)
        switch_buffer_create_dynamic(&buffer, 8192, 65536, 0);
 
        av_register_all();
-       avformat_alloc_output_context2(&fc, NULL, format, data);
+       mod_avformat_alloc_output_context2(&fc, NULL, format, data);
 
        if (!fc) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Could not deduce output format from file extension\n");
@@ -1536,7 +1536,7 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
                return SWITCH_STATUS_SUCCESS;
        }
 
-       avformat_alloc_output_context2(&context->fc, NULL, format, (char *)file);
+       mod_avformat_alloc_output_context2(&context->fc, NULL, format, (char *)file);
 
        if (!context->fc) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Could not deduce output format from file extension\n");