receiver bug fix: padding was set only if deactivated, frame padding enabled and deactivated padding enabled. Fixed that frame padding and deactivated padding is independent. Padding is done if frame padding enabled or if deactivated and deactivated padding enabled

This commit is contained in:
2018-11-30 16:10:13 +01:00
parent f120f9c3dd
commit 228cfa35c0
2 changed files with 19 additions and 499 deletions

View File

@ -363,10 +363,12 @@ void DataProcessor::ProcessAnImage(char* buf) {
*dynamicRange);
// frame padding
if (*activated && *framePadding && nump < generalData->packetsPerFrame)
PadMissingPackets(buf);
// deactivated and padding enabled
if ((!(*activated) && *deactivatedPaddingEnable) ||
// frame padding
(*framePadding && nump < generalData->packetsPerFrame))
else if (!(*activated) && *deactivatedPaddingEnable)
PadMissingPackets(buf);
// normal call back