use correct value for silent sample count delivered to LTC decoder

This commit is contained in:
Paul Davis
2019-02-06 13:53:42 -07:00
parent 896091d256
commit 68897a742f

View File

@@ -531,7 +531,7 @@ LTC_TransportMaster::pre_process (ARDOUR::pframes_t nframes, samplepos_t now, bo
if (skip >= 8192) skip = 8192;
unsigned char sound[8192];
memset (sound, 0x80, sizeof(char) * skip);
ltc_decoder_write (decoder, sound, nframes, now);
ltc_decoder_write (decoder, sound, skip, now);
} else if (skip != 0) {
/* this should never happen. it may if monotonic_cnt, now overflow on 64bit */
DEBUG_TRACE (DEBUG::LTC, string_compose("engine skipped %1 samples\n", skip));