]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/videotoolboxenc: Allow full range 10bit pixel format input
authorHarry Mallon <harry.mallon@codex.online>
Mon, 21 Sep 2020 11:16:59 +0000 (12:16 +0100)
committerRick Kern <kernrj@gmail.com>
Tue, 29 Sep 2020 00:46:36 +0000 (20:46 -0400)
Signed-off-by: Harry Mallon <harry.mallon@codex.online>
Signed-off-by: Rick Kern <kernrj@gmail.com>
libavcodec/videotoolboxenc.c

index 212f41b19a29952348c917b79228e8e8468817c2..fe0c98300b3ed39b7bfce22cb0ddc9d4691235a9 100644 (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);
     }