From 7f4af290821422ce075b7e503344748b84d9f59a Mon Sep 17 00:00:00 2001 From: Dmitry Ermakov Date: Tue, 9 Jun 2026 13:08:59 +0300 Subject: [PATCH] Additional data_type for jpeg packets --- dvrip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvrip.py b/dvrip.py index b409994..9eed5db 100644 --- a/dvrip.py +++ b/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)