X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=channels%2Fchan_phone.c;h=2bf7bddb4d659caa3dbf6dd8380e3def3d8d30de;hp=ced9b1390ae556076c1194e94e39b2ee5c795499;hb=8a69aedd17b7b0c3e9e5b0b88483b6a2536cabc1;hpb=0ed8aebda9a72509d342f362481222bad4ce5575 diff --git a/channels/chan_phone.c b/channels/chan_phone.c index ced9b13..2bf7bdd 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -827,7 +827,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.format.id == AST_FORMAT_SLINEAR) + if (ast_format_cmp(frame->subclass.format, ast_format_slin) == AST_FORMAT_CMP_EQUAL) swap = 1; /* Swap big-endian samples to little-endian as we copy */ #endif res = phone_write_buf(p, pos, expected, maxfr, swap);