diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-15 18:09:25 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-15 18:09:25 +0000 |
commit | 263f96f50e69c36846c2af33a7ded317112ec348 (patch) | |
tree | 79c811d56f9da08e8a0bea3fd8dbac6cc7d5476c /channels/chan_phone.c | |
parent | 7042946972de9d3941d4667e1438c35d687457c3 (diff) |
Fixes compile error in chan_phone for big endian
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@307927 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_phone.c')
-rw-r--r-- | channels/chan_phone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 4897775cc..6b7420198 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -819,7 +819,7 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame) } else { int swap = 0; #if __BYTE_ORDER == __BIG_ENDIAN - if (frame->subclass.codec == AST_FORMAT_SLINEAR) + if (frame->subclass.format.id == AST_FORMAT_SLINEAR) swap = 1; /* Swap big-endian samples to little-endian as we copy */ #endif res = phone_write_buf(p, pos, expected, maxfr, swap); |