From 5bc1b3bc765d39b8fa077bc84ad64ffb458448b8 Mon Sep 17 00:00:00 2001 From: SCG82 Date: Sat, 3 Aug 2019 05:12:15 -0700 Subject: [PATCH] libobs: Add missing pixel format to format_is_yuv and get_video_format_name --- libobs/media-io/video-io.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libobs/media-io/video-io.h b/libobs/media-io/video-io.h index d64f05cfd..1ab4e159c 100644 --- a/libobs/media-io/video-io.h +++ b/libobs/media-io/video-io.h @@ -95,6 +95,7 @@ static inline bool format_is_yuv(enum video_format format) switch (format) { case VIDEO_FORMAT_I420: case VIDEO_FORMAT_NV12: + case VIDEO_FORMAT_I422: case VIDEO_FORMAT_YVYU: case VIDEO_FORMAT_YUY2: case VIDEO_FORMAT_UYVY: @@ -119,6 +120,8 @@ static inline const char *get_video_format_name(enum video_format format) return "I420"; case VIDEO_FORMAT_NV12: return "NV12"; + case VIDEO_FORMAT_I422: + return "I422"; case VIDEO_FORMAT_YVYU: return "YVYU"; case VIDEO_FORMAT_YUY2: