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:
paulc 2007-02-28 00:25:47 +00:00
parent f873e1e768
commit bf8241127f
1 changed files with 4 additions and 2 deletions

View File

@ -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);