mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 13:47:50 -04: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++)
|
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++;
|
m_tsBlockIndex++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user