You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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);
|
colorpri, kCVAttachmentMode_ShouldPropagate);
|
||||||
else {
|
else {
|
||||||
CVBufferRemoveAttachment(pixbuf, kCVImageBufferColorPrimariesKey);
|
CVBufferRemoveAttachment(pixbuf, kCVImageBufferColorPrimariesKey);
|
||||||
if (src->color_primaries != AVCOL_SPC_UNSPECIFIED)
|
if (src->color_primaries != AVCOL_PRI_UNSPECIFIED)
|
||||||
av_log(log_ctx, AV_LOG_WARNING,
|
av_log(log_ctx, AV_LOG_WARNING,
|
||||||
"Color primaries %s is not supported.\n",
|
"Color primaries %s is not supported.\n",
|
||||||
av_color_primaries_name(src->color_primaries));
|
av_color_primaries_name(src->color_primaries));
|
||||||
|
Reference in New Issue
Block a user