Initialize target properly (bug #4167, take 2)
authorMark Spencer <markster@digium.com>
Sun, 15 May 2005 00:03:17 +0000 (00:03 +0000)
committerMark Spencer <markster@digium.com>
Sun, 15 May 2005 00:03:17 +0000 (00:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5655 65c4cc65-6c06-0410-ace0-fbb531ad65f3

jitterbuf.c

index 26d58cb..96dff63 100755 (executable)
@@ -57,7 +57,7 @@ void jb_reset(jitterbuf *jb)
        memset(jb,0,sizeof(jitterbuf));
 
        /* initialize length */
-       jb->info.current = jb->info.target = 0; 
+       jb->info.current = jb->info.target = JB_TARGET_EXTRA; 
        jb->info.silence_begin_ts = -1; 
 }