[Speex-dev] Bug (and fix) for speex_jitter_buffer.c
jean-marc.valin at usherbrooke.ca
Tue Sep 16 04:25:42 PDT 2008
Joshua Gargus a écrit :
> I'd like to report a bug in speexclient/speex_jitter_buffer.c. In the
> function speex_jitter_get(), after the line:
> packet.data = data;
> add the line
> packet.len = 2048;
Thanks a lot for the bug report -- and the fix. I finally had a few
minutes to apply it.
> If this variable is uninitialized, then in jitter_buffer_get() (in
> jitter.c), the predicate "jitter->packets[i].len > packet->len" is
> undetermined. When this happens, the wrong amount of data is copied
> from the jitter-buffer (eg: if (packet->len == 0), then no data is
> copied). For some reason, this didn't bite me on OS X, but when porting
> to Windows, it consistently caused errors.
> Now that I have it working, the jitter-buffer sounds great! Thanks
> again for Speex.
> Speex-dev mailing list
> Speex-dev at xiph.org
More information about the Speex-dev