Replaced a possibly undefined code sequence with a slightly longer code.
git-svn-id: http://voip.null.ro/svn/yate@1205 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
f873e1e768
commit
bf8241127f
|
@ -248,8 +248,10 @@ public:
|
|||
oblock.assign(0,n*4);
|
||||
unsigned short* d = (unsigned short*) oblock.data();
|
||||
// duplicate the sample for each channel
|
||||
while (n--)
|
||||
*d++ = *d++ = *s++; // valid - in case you wonder
|
||||
while (n--) {
|
||||
unsigned short v = *d++ = *s++;
|
||||
*d++ = v;
|
||||
}
|
||||
}
|
||||
else if ((m_sChans == 2) && (m_dChans == 1)) {
|
||||
oblock.assign(0,n);
|
||||
|
|
Loading…
Reference in New Issue