From e0e1d3ad0e40c778f39c87b7936cfd5711601ed6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 10 May 2008 06:11:52 +0000 Subject: [PATCH] we should swap on read too I suppose git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8350 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_reference/mod_reference.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_reference/mod_reference.c b/src/mod/endpoints/mod_reference/mod_reference.c index cb024297bb..803ff46208 100644 --- a/src/mod/endpoints/mod_reference/mod_reference.c +++ b/src/mod/endpoints/mod_reference/mod_reference.c @@ -301,6 +301,11 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch continue; } *frame = &tech_pvt->read_frame; +#ifdef BIGENDIAN + if (switch_test_flag(tech_pvt, TFLAG_LINEAR)) { + switch_swap_linear((*frame)->data, (int) (*frame)->datalen / 2); + } +#endif return SWITCH_STATUS_SUCCESS; }