Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-06-14 16:42:23 +0400
committerTon Roosendaal <ton@blender.org>2006-06-14 16:42:23 +0400
commitb81e5bac741fca9e6938d4608d343a08c5e9d6cc (patch)
tree3ee9e28193b1458ffe24e696cf0eadde892abdaa /source/blender/blenkernel/BKE_utildefines.h
parent8988a0de38dcf545447649ac778b145b2fb5e14a (diff)
Bugfix #4135
Mixdown option (blending sequence audio strips) didn't write proper WAV. - file length in header chunk was too short (potential crasher) - endian switch code used swab(), which wasn't defined to work when src and target is identical - cleaned up some code too... like removing timecursor() for core loop.
Diffstat (limited to 'source/blender/blenkernel/BKE_utildefines.h')
-rw-r--r--source/blender/blenkernel/BKE_utildefines.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_utildefines.h b/source/blender/blenkernel/BKE_utildefines.h
index 4c143e3293a..f5fe91920b7 100644
--- a/source/blender/blenkernel/BKE_utildefines.h
+++ b/source/blender/blenkernel/BKE_utildefines.h
@@ -163,6 +163,11 @@
s_i=p_i[0]; p_i[0]=p_i[3]; p_i[3]=s_i; \
s_i=p_i[1]; p_i[1]=p_i[2]; p_i[2]=s_i; }
+#define SWITCH_SHORT(a) { \
+ char s_i, *p_i; \
+ p_i= (char *)&(a); \
+ s_i=p_i[0]; p_i[0]=p_i[1]; p_i[1]=s_i; }
+
/* Bit operations */
#define BTST(a,b) ( ( (a) & 1<<(b) )!=0 )