don't pass timestamps here either if samples per packet don't match
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10370 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e4e6623a84
commit
d43a44574e
|
@ -266,7 +266,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue