On Thu, Dec 16, 2021 at 7:13 PM rcombs <rco...@rcombs.me> wrote: > --- > libavcodec/videotoolboxenc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c > index fa8f717a6c..e10373dded 100644 > --- a/libavcodec/videotoolboxenc.c > +++ b/libavcodec/videotoolboxenc.c > @@ -1012,6 +1012,9 @@ static int get_cv_ycbcr_matrix(AVCodecContext > *avctx, CFStringRef *matrix) { > *matrix = compat_keys.kCVImageBufferYCbCrMatrix_ITU_R_2020; > break; > > + case AVCOL_SPC_RGB: > It would be clearer to set the matrix to NULL here (like the AVCOL_SPC_UNSPECIFIED case).
+ break; > + > default: > av_log(avctx, AV_LOG_ERROR, "Color space %s is not > supported.\n", av_color_space_name(avctx->colorspace)); > return -1; > -- > 2.33.1 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".