applemedia: Fix pixel format for I420
authorL. E. Segovia <amy@amyspark.me>
Tue, 15 Aug 2023 21:45:56 +0000 (21:45 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Sep 2023 19:42:22 +0000 (19:42 +0000)
commit6cfb9b7c850ef6fabe9dac8ea4a2046d3b9c9cf0
treed8104b0e843f1f8488cb644a588647a9512bd9eb
parent6efc79f5b640394a48d00ba9d6f9cb42abda62a5
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:

https://github.com/FFmpeg/FFmpeg/blob/8653dcaf7d665b15b40ea9a560c8171b0914a882/libavutil/hwcontext_videotoolbox.c#L45

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5203>
subprojects/gst-plugins-bad/sys/applemedia/coremediabuffer.c
subprojects/gst-plugins-bad/sys/applemedia/corevideobuffer.c