mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
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:
parent
80384a6ec3
commit
e16788a323
@ -789,7 +789,6 @@ static int get_cv_pixel_format(AVCodecContext* avctx,
|
|||||||
*av_pixel_format = range == AVCOL_RANGE_JPEG ?
|
*av_pixel_format = range == AVCOL_RANGE_JPEG ?
|
||||||
kCVPixelFormatType_420YpCbCr10BiPlanarFullRange :
|
kCVPixelFormatType_420YpCbCr10BiPlanarFullRange :
|
||||||
kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
|
kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
|
||||||
*av_pixel_format = kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
|
|
||||||
} else {
|
} else {
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user