diff options
-rw-r--r-- | video/out/vo_corevideo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/vo_corevideo.c b/video/out/vo_corevideo.c index 2bc5e9b2dd..bad282436f 100644 --- a/video/out/vo_corevideo.c +++ b/video/out/vo_corevideo.c @@ -226,6 +226,10 @@ static int query_format(struct vo *vo, uint32_t format) p->pixelFormat = kYUVSPixelFormat; return flags; + case IMGFMT_UYVY: + p->pixelFormat = k2vuyPixelFormat; + return flags; + case IMGFMT_RGB24: p->pixelFormat = k24RGBPixelFormat; return flags; @@ -301,6 +305,7 @@ static int get_image_fmt(struct vo *vo) struct priv *p = vo->priv; switch (p->pixelFormat) { case kYUVSPixelFormat: return IMGFMT_YUYV; + case k2vuyPixelFormat: return IMGFMT_UYVY; case k24RGBPixelFormat: return IMGFMT_RGB24; case k32ARGBPixelFormat: return IMGFMT_ARGB; case k32BGRAPixelFormat: return IMGFMT_BGRA; |