fix breakage from slin endianness commit earlier today (sorry :-()
[asterisk/asterisk.git] / channels / iax2-parser.c
index f83e741..61038c3 100755 (executable)
@@ -859,7 +859,7 @@ void iax_frame_wrap(struct iax_frame *fr, struct ast_frame *f)
 #if __BYTE_ORDER == __LITTLE_ENDIAN
                /* We need to byte-swap slinear samples from network byte order */
                if (fr->af.subclass == AST_FORMAT_SLINEAR) {
-                       ast_memcpy_byteswap(fr->af.data, f->data, fr->af.samples);
+                       ast_swapcopy_samples(fr->af.data, f->data, fr->af.samples);
                } else
 #endif
                memcpy(fr->af.data, f->data, fr->af.datalen);