[asterisk-commits] file: branch group/media_formats r407621 - in /team/group/media_formats: apps...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 7 06:23:41 CST 2014


Author: file
Date: Fri Feb  7 06:23:31 2014
New Revision: 407621

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=407621
Log:
Incorporate some review feedback over here.

Modified:
    team/group/media_formats/apps/app_amd.c
    team/group/media_formats/include/asterisk/codec.h
    team/group/media_formats/main/codec.c

Modified: team/group/media_formats/apps/app_amd.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/apps/app_amd.c?view=diff&rev=407621&r1=407620&r2=407621
==============================================================================
--- team/group/media_formats/apps/app_amd.c (original)
+++ team/group/media_formats/apps/app_amd.c Fri Feb  7 06:23:31 2014
@@ -289,7 +289,7 @@
 		if (f->frametype == AST_FRAME_VOICE || f->frametype == AST_FRAME_NULL || f->frametype == AST_FRAME_CNG) {
 			/* If the total time exceeds the analysis time then give up as we are not too sure */
 			if (f->frametype == AST_FRAME_VOICE) {
-				framelength = (ast_codec_get_samples(f) / DEFAULT_SAMPLES_PER_MS);
+				framelength = (ast_codec_samples_count(f) / DEFAULT_SAMPLES_PER_MS);
 			} else {
 				framelength = 2 * maxWaitTimeForFrame;
 			}

Modified: team/group/media_formats/include/asterisk/codec.h
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/include/asterisk/codec.h?view=diff&rev=407621&r1=407620&r2=407621
==============================================================================
--- team/group/media_formats/include/asterisk/codec.h (original)
+++ team/group/media_formats/include/asterisk/codec.h Fri Feb  7 06:23:31 2014
@@ -157,6 +157,6 @@
  *
  * \retval number of samples in the frame
  */
-unsigned int ast_codec_get_samples(struct ast_frame *frame);
+unsigned int ast_codec_samples_count(struct ast_frame *frame);
 
 #endif /* _AST_CODEC_H */

Modified: team/group/media_formats/main/codec.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/main/codec.c?view=diff&rev=407621&r1=407620&r2=407621
==============================================================================
--- team/group/media_formats/main/codec.c (original)
+++ team/group/media_formats/main/codec.c Fri Feb  7 06:23:31 2014
@@ -325,7 +325,7 @@
 	}
 }
 
-unsigned int ast_codec_get_samples(struct ast_frame *frame)
+unsigned int ast_codec_samples_count(struct ast_frame *frame)
 {
 	if ((frame->frametype != AST_FRAME_VOICE) &&
 		(frame->frametype != AST_FRAME_VIDEO) &&




More information about the asterisk-commits mailing list