mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
applemedia: Fix pixel format for I420
In Intel Macs, using full range 8-bit 4:2:0 YCbCr results in a failure on
initialization. I've validated this to be the correct pixel format with FFmpeg:
8653dcaf7d/libavutil/hwcontext_videotoolbox.c (L45)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5203>
This commit is contained in:
parent
6efc79f5b6
commit
6cfb9b7c85
2 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,8 @@ static GstVideoFormat
|
|||
gst_core_media_buffer_get_video_format (OSType format)
|
||||
{
|
||||
switch (format) {
|
||||
case kCVPixelFormatType_420YpCbCr8Planar:
|
||||
return GST_VIDEO_FORMAT_I420;
|
||||
case kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange:
|
||||
return GST_VIDEO_FORMAT_NV12;
|
||||
case kCVPixelFormatType_422YpCbCr8_yuvs:
|
||||
|
|
|
@ -216,6 +216,8 @@ static GstVideoFormat
|
|||
gst_core_video_get_video_format (OSType format)
|
||||
{
|
||||
switch (format) {
|
||||
case kCVPixelFormatType_420YpCbCr8Planar:
|
||||
return GST_VIDEO_FORMAT_I420;
|
||||
case kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange:
|
||||
return GST_VIDEO_FORMAT_NV12;
|
||||
case kCVPixelFormatType_422YpCbCr8_yuvs:
|
||||
|
|
Loading…
Reference in a new issue