From dcb9d3c99e79f428c45d3436c2d714358c2c790b Mon Sep 17 00:00:00 2001 From: Seven Du Date: Mon, 24 Nov 2014 09:37:30 +0800 Subject: [PATCH] FS-7519: rename mod_ffmpeg to mod_av --- .../{mod_ffmpeg/mod_ffmpeg.c => mod_av/mod_av.c} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename src/mod/applications/{mod_ffmpeg/mod_ffmpeg.c => mod_av/mod_av.c} (98%) diff --git a/src/mod/applications/mod_ffmpeg/mod_ffmpeg.c b/src/mod/applications/mod_av/mod_av.c similarity index 98% rename from src/mod/applications/mod_ffmpeg/mod_ffmpeg.c rename to src/mod/applications/mod_av/mod_av.c index ee94b7660f..9d5ff3db1a 100644 --- a/src/mod/applications/mod_ffmpeg/mod_ffmpeg.c +++ b/src/mod/applications/mod_av/mod_av.c @@ -25,7 +25,7 @@ * * Seven Du * - * mod_ffmpeg -- FS Video File Format + * mod_av -- FS Video File Format * */ @@ -47,8 +47,8 @@ #define FPS 15 // frame rate -SWITCH_MODULE_LOAD_FUNCTION(mod_ffmpeg_load); -SWITCH_MODULE_DEFINITION(mod_ffmpeg, mod_ffmpeg_load, NULL, NULL); +SWITCH_MODULE_LOAD_FUNCTION(mod_av_load); +SWITCH_MODULE_DEFINITION(mod_av, mod_av_load, NULL, NULL); /* ff_avc_find_startcode is not exposed in the ffmpeg lib but you can use it Either include the avc.h which available in the ffmpeg source, or @@ -950,7 +950,7 @@ void show_codecs(switch_stream_handle_t *stream) av_free(codecs); } -SWITCH_STANDARD_API(ffmpeg_api_function) +SWITCH_STANDARD_API(av_api_function) { if (zstr(cmd)) { show_codecs(stream); @@ -991,7 +991,7 @@ static void log_callback(void *ptr, int level, const char *fmt, va_list vl) static char *supported_formats[SWITCH_MAX_CODECS] = { 0 }; -SWITCH_MODULE_LOAD_FUNCTION(mod_ffmpeg_load) +SWITCH_MODULE_LOAD_FUNCTION(mod_av_load) { switch_codec_interface_t *codec_interface; switch_api_interface_t *api_interface; @@ -1006,7 +1006,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_ffmpeg_load) switch_core_codec_add_video_implementation(pool, codec_interface, 99, "H264", NULL, switch_h264_init, switch_h264_encode, switch_h264_decode, switch_h264_control, switch_h264_destroy); - SWITCH_ADD_API(api_interface, "ffmpeg", "ffmpeg", ffmpeg_api_function, ""); + SWITCH_ADD_API(api_interface, "av", "av information", av_api_function, "show "); av_log_set_callback(log_callback); av_log_set_level(AV_LOG_DEBUG);