timestamp is now in samples (was ms). Let's see how much hate mail I get over
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sat, 1 Oct 2005 07:08:12 +0000 (07:08 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sat, 1 Oct 2005 07:08:12 +0000 (07:08 +0000)
that.

git-svn-id: http://svn.xiph.org/trunk/speex@10104 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/jitter.c

index 362d7d5..6036d02 100644 (file)
@@ -59,7 +59,7 @@ void speex_jitter_init(SpeexJitter *jitter, void *decoder, int sampling_rate)
 
    jitter->dec = decoder;
    speex_decoder_ctl(decoder, SPEEX_GET_FRAME_SIZE, &jitter->frame_size);
-   jitter->frame_time = 1000*jitter->frame_size / sampling_rate;
+   jitter->frame_time = jitter->frame_size;
 
    speex_bits_init(&jitter->current_packet);
    jitter->valid_bits = 0;