mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avutil/hwcontext_videotoolbox: fix color primaries check
Fix incorrect enum value used in color primaries check by replacing AVCOL_SPC_UNSPECIFIED with AVCOL_PRI_UNSPECIFIED. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
@@ -590,7 +590,7 @@ static int vt_pixbuf_set_colorspace(void *log_ctx,
|
||||
colorpri, kCVAttachmentMode_ShouldPropagate);
|
||||
else {
|
||||
CVBufferRemoveAttachment(pixbuf, kCVImageBufferColorPrimariesKey);
|
||||
if (src->color_primaries != AVCOL_SPC_UNSPECIFIED)
|
||||
if (src->color_primaries != AVCOL_PRI_UNSPECIFIED)
|
||||
av_log(log_ctx, AV_LOG_WARNING,
|
||||
"Color primaries %s is not supported.\n",
|
||||
av_color_primaries_name(src->color_primaries));
|
||||
|
||||
Reference in New Issue
Block a user