[svn-commits] mvanbaak: branch mvanbaak/ast_frame_dataunion r117244 - /team/mvanbaak/ast_fr...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon May 19 16:31:08 CDT 2008


Author: mvanbaak
Date: Mon May 19 16:31:07 2008
New Revision: 117244

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117244
Log:
convert the byteswap functions to use the new data.ptr field

Modified:
    team/mvanbaak/ast_frame_dataunion/include/asterisk/frame.h

Modified: team/mvanbaak/ast_frame_dataunion/include/asterisk/frame.h
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/ast_frame_dataunion/include/asterisk/frame.h?view=diff&rev=117244&r1=117243&r2=117244
==============================================================================
--- team/mvanbaak/ast_frame_dataunion/include/asterisk/frame.h (original)
+++ team/mvanbaak/ast_frame_dataunion/include/asterisk/frame.h Mon May 19 16:31:07 2008
@@ -446,9 +446,9 @@
    little-endian and big-endian. */
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define ast_frame_byteswap_le(fr) do { ; } while(0)
-#define ast_frame_byteswap_be(fr) do { struct ast_frame *__f = (fr); ast_swapcopy_samples(__f->data, __f->data, __f->samples); } while(0)
+#define ast_frame_byteswap_be(fr) do { struct ast_frame *__f = (fr); ast_swapcopy_samples(__f->data.ptr, __f->data.ptr, __f->samples); } while(0)
 #else
-#define ast_frame_byteswap_le(fr) do { struct ast_frame *__f = (fr); ast_swapcopy_samples(__f->data, __f->data, __f->samples); } while(0)
+#define ast_frame_byteswap_le(fr) do { struct ast_frame *__f = (fr); ast_swapcopy_samples(__f->data.ptr, __f->data.ptr, __f->samples); } while(0)
 #define ast_frame_byteswap_be(fr) do { ; } while(0)
 #endif
 




More information about the svn-commits mailing list