diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-01-03 18:18:32 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-01-11 18:57:20 +0800 |
commit | e7aca339ce67dd68fc3179af0890cd1cc46e0a83 (patch) | |
tree | 81b303d0b16405b47a3e24b1ca80213ef9462f97 | |
parent | 0ef85a5471452068e96c16402bfc330b3ce50a84 (diff) | |
download | ffmpeg-e7aca339ce67dd68fc3179af0890cd1cc46e0a83.tar.gz |
avutil/hwcontext_videotoolbox: BGRA should be full range
HEVC alpha layer encoding is broken without the patch.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavutil/hwcontext_videotoolbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c index e442a95007..b8e6bb407f 100644 --- a/libavutil/hwcontext_videotoolbox.c +++ b/libavutil/hwcontext_videotoolbox.c @@ -44,7 +44,7 @@ static const struct { } cv_pix_fmts[] = { { kCVPixelFormatType_420YpCbCr8Planar, false, AV_PIX_FMT_YUV420P }, { kCVPixelFormatType_422YpCbCr8, false, AV_PIX_FMT_UYVY422 }, - { kCVPixelFormatType_32BGRA, false, AV_PIX_FMT_BGRA }, + { kCVPixelFormatType_32BGRA, true, AV_PIX_FMT_BGRA }, #ifdef kCFCoreFoundationVersionNumber10_7 { kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, false, AV_PIX_FMT_NV12 }, { kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, true, AV_PIX_FMT_NV12 }, |