Skip to content

Commit

Permalink
fix displaying SOI marker for USP-image
Browse files Browse the repository at this point in the history
  • Loading branch information
baskiton committed May 1, 2024
1 parent 0062389 commit dab4614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SatsDecoder/systems/usp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,8 @@ def push_data(self, data):
if data.message == FILETRANSFER_DATA:
img = self.get_image()
with img.lock:
if not packet.offset and packet.data.startswith(b'\xff\xd8'):
img.has_soi = 1
img.push_data(packet.offset, packet.data[:data.size - 5])
if packet.offset < img.first_data_offset:
img.first_data_offset = packet.offset
Expand Down

0 comments on commit dab4614

Please sign in to comment.