Improve comment about stream padding

This commit is contained in:
kris 2019-03-28 23:47:38 +00:00
parent fa6c2bb25d
commit 33ac880d29

View File

@ -92,7 +92,8 @@ class Movie:
# Keep track of where we are in TCP client socket buffer
socket_pos = self.stream_pos % 2048
if socket_pos >= 2044:
# 2 dummy bytes + 2 address bytes for next opcode
# 2 op_ack address bytes + 2 payload bytes from ACK must
# terminate 2K stream frame
yield from self._emit_bytes(opcodes.Ack(self.aux_memory_bank))
# Flip-flop between MAIN and AUX banks
self.aux_memory_bank = not self.aux_memory_bank