From f0223e1b835894a20989523555a0f4e19cd36619 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 3 Mar 2018 11:57:41 -0800 Subject: tv: Recognise v4l2 'JPEG' fourcc Naturally, there's more than one fourcc that indicates an mjpeg stream. I have a particular ancient webcam here (Logitech QuickCam Messanger) that only supports the single 'JPEG' format, but there are other devices out there which support both 'JPEG' and 'MJPG' with no visible differences, and others where the streams are slightly different. Regardless of those details, it remains correct to treat 'JPEG' the same as 'MJPG' from a stream consumption perspective. --- stream/tvi_def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/tvi_def.h') diff --git a/stream/tvi_def.h b/stream/tvi_def.h index 97d0982c94..0794b7eb91 100644 --- a/stream/tvi_def.h +++ b/stream/tvi_def.h @@ -79,6 +79,7 @@ static inline void fill_blank_frame(char* buffer,int len,int fmt){ } break; case MP_FOURCC_MJPEG: + case MP_FOURCC_JPEG: /* This is compressed format. I don't know yet how to fill such frame with blue color. Keeping frame unchanged. -- cgit v1.2.3