avcodec/videotoolboxenc: Allow full range 10bit pixel format input

Signed-off-by: Harry Mallon <harry.mallon@codex.online>
Signed-off-by: Rick Kern <kernrj@gmail.com>
This commit is contained in:
Harry Mallon 2020-09-21 12:16:59 +01:00 committed by Rick Kern
parent 80384a6ec3
commit e16788a323

View File

@ -789,7 +789,6 @@ static int get_cv_pixel_format(AVCodecContext* avctx,
*av_pixel_format = range == AVCOL_RANGE_JPEG ?
kCVPixelFormatType_420YpCbCr10BiPlanarFullRange :
kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
*av_pixel_format = kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
} else {
return AVERROR(EINVAL);
}