From: David Vossel Date: Tue, 15 Feb 2011 18:09:25 +0000 (+0000) Subject: Fixes compile error in chan_phone for big endian X-Git-Tag: 11.0.0-beta1~1839 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ed1ba3e9da013d0c1b26047db88108b8ffb1c5;p=thirdparty%2Fasterisk.git Fixes compile error in chan_phone for big endian git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@307927 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 4897775cc4..6b7420198d 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);