1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 22:31:48 -05:00

DSD demod: account for not constant length MBE frames

This commit is contained in:
f4exb 2016-09-25 01:21:30 +02:00
parent b4b133118d
commit 8672c69246

View File

@ -60,7 +60,7 @@ public:
} }
private: private:
unsigned char m_mbeFrame[SerialDV::MBE_FRAME_LENGTH_BYTES]; unsigned char m_mbeFrame[SerialDV::MBE_FRAME_MAX_LENGTH_BYTES];
SerialDV::DVRate m_mbeRate; SerialDV::DVRate m_mbeRate;
int m_volumeIndex; int m_volumeIndex;
unsigned char m_channels; unsigned char m_channels;
@ -77,7 +77,7 @@ public:
m_channels(channels), m_channels(channels),
m_audioFifo(audioFifo) m_audioFifo(audioFifo)
{ {
memcpy((void *) m_mbeFrame, (const void *) mbeFrame, SerialDV::MBE_FRAME_LENGTH_BYTES); memcpy((void *) m_mbeFrame, (const void *) mbeFrame, SerialDV::DVController::getNbMbeBytes(m_mbeRate));
} }
}; };