Browse Source

Additional data_type for jpeg packets

master
Dmitry Ermakov 4 days ago
committed by GitHub
parent
commit
7f4af29082
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      dvrip.py

2
dvrip.py

@ -879,7 +879,7 @@ class DVRIPCam(object):
elif data_type == 0x1F9:
(media, n, length) = struct.unpack("BBH", packet[4:frame_len])
# special case of JPEG shapshots
elif data_type == 0xFFD8FFE0:
elif data_type == 0xFFD8FFE0 or data_type == 0xFFD8FFDB:
return packet
else:
raise ValueError(data_type)

Loading…
Cancel
Save