[FFmpeg-devel] [PATCH 2/2] avcodec/videotoolboxenc: Allow full range 10bit pixel format input

Harry Mallon harry.mallon at codex.online
Mon Sep 21 14:16:59 EEST 2020


Signed-off-by: Harry Mallon <harry.mallon at codex.online>
---
 libavcodec/videotoolboxenc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 212f41b19a..fe0c98300b 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -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);
     }
-- 
2.28.0



More information about the ffmpeg-devel mailing list