[asterisk-commits] dvossel: branch dvossel/jb_ftw r314486 - /team/dvossel/jb_ftw/funcs/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 20 15:20:24 CDT 2011
Author: dvossel
Date: Wed Apr 20 15:20:20 2011
New Revision: 314486
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=314486
Log:
Only jitterbuffer frames with proper timing info
Modified:
team/dvossel/jb_ftw/funcs/func_jitterbuffer.c
Modified: team/dvossel/jb_ftw/funcs/func_jitterbuffer.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/jb_ftw/funcs/func_jitterbuffer.c?view=diff&rev=314486&r1=314485&r2=314486
==============================================================================
--- team/dvossel/jb_ftw/funcs/func_jitterbuffer.c (original)
+++ team/dvossel/jb_ftw/funcs/func_jitterbuffer.c Wed Apr 20 15:20:20 2011
@@ -226,7 +226,14 @@
if (frame->frametype == AST_FRAME_VOICE) {
int res;
- struct ast_frame *jbframe = ast_frisolate(frame);
+ struct ast_frame *jbframe;
+
+ if (!ast_test_flag(frame, AST_FRFLAG_HAS_TIMING_INFO) || frame->len < 2 || frame->ts < 0) {
+ /* only frames with timing info can enter the jitterbuffer */
+ return frame;
+ }
+
+ jbframe = ast_frisolate(frame);
ast_format_copy(&framedata->last_format, &frame->subclass.format);
if (frame->len && (frame->len != framedata->timer_interval)) {
More information about the asterisk-commits
mailing list