mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
DATV decoder: fixed UDP sender dropping packets. Fixes issue #579
This commit is contained in:
parent
97efda734f
commit
b33f37952c
@ -44,9 +44,10 @@ void DATVUDPStream::pushData(const char *chrData, int nbTSBlocks)
|
||||
|
||||
for (int i = 0; i < nbTSBlocks; i++)
|
||||
{
|
||||
if (m_tsBlockIndex < m_tsBlocksPerFrame)
|
||||
std::copy(chrData + i*m_tsBlockSize, chrData + (i+1)*m_tsBlockSize, m_tsBuffer + m_tsBlockIndex*m_tsBlockSize);
|
||||
|
||||
if (m_tsBlockIndex < m_tsBlocksPerFrame - 1)
|
||||
{
|
||||
std::copy(chrData + i*m_tsBlockSize, chrData + (i+1)*m_tsBlockSize, m_tsBuffer + m_tsBlockIndex*m_tsBlockSize);
|
||||
m_tsBlockIndex++;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user