[Freeswitch-svn] [commit] r10370 - freeswitch/trunk/src
FreeSWITCH SVN
brian at freeswitch.org
Wed Nov 12 23:36:06 PST 2008
Author: brian
Date: Thu Nov 13 02:36:06 2008
New Revision: 10370
Log:
don't pass timestamps here either if samples per packet don't match
Modified:
freeswitch/trunk/src/switch_core_io.c
Modified: freeswitch/trunk/src/switch_core_io.c
==============================================================================
--- freeswitch/trunk/src/switch_core_io.c (original)
+++ freeswitch/trunk/src/switch_core_io.c Thu Nov 13 02:36:06 2008
@@ -266,7 +266,11 @@
case SWITCH_STATUS_SUCCESS:
session->raw_read_frame.samples = session->raw_read_frame.datalen / sizeof(int16_t);
session->raw_read_frame.rate = read_frame->rate;
- session->raw_read_frame.timestamp = read_frame->timestamp;
+ if (read_frame->codec->implementation->samples_per_packet != session->read_codec->implementation->samples_per_packet) {
+ session->raw_read_frame.timestamp = 0;
+ } else {
+ session->raw_read_frame.timestamp = read_frame->timestamp;
+ }
session->raw_read_frame.ssrc = read_frame->ssrc;
session->raw_read_frame.seq = read_frame->seq;
session->raw_read_frame.m = read_frame->m;
More information about the Freeswitch-svn
mailing list