summaryrefslogtreecommitdiffstats
path: root/stream/tv.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2018-03-03 11:57:41 -0800
committerKevin Mitchell <kevmitch@gmail.com>2018-03-04 16:28:24 -0800
commitf0223e1b835894a20989523555a0f4e19cd36619 (patch)
treef3f818ef6e9cf0588890a772f5944c6f237524b6 /stream/tv.h
parent496b13227b7f4b47a660bbf4e314f9a55b7e8867 (diff)
downloadmpv-f0223e1b835894a20989523555a0f4e19cd36619.tar.bz2
mpv-f0223e1b835894a20989523555a0f4e19cd36619.tar.xz
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.
Diffstat (limited to 'stream/tv.h')
-rw-r--r--stream/tv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/tv.h b/stream/tv.h
index f37e715515..94b7f01887 100644
--- a/stream/tv.h
+++ b/stream/tv.h
@@ -280,5 +280,6 @@ extern const struct m_sub_options tv_params_conf;
#define MP_FOURCC_YUY2 MP_FOURCC('Y', 'U', 'Y', '2')
#define MP_FOURCC_MJPEG MP_FOURCC('M', 'J', 'P', 'G')
+#define MP_FOURCC_JPEG MP_FOURCC('J', 'P', 'E', 'G')
#endif /* MPLAYER_TV_H */