summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorfumoboy007 <fumoboy007@me.com>2019-04-13 16:36:00 +0200
committerJan Ekström <jeebjp@gmail.com>2019-04-16 03:43:06 +0300
commit036b4b0f85933f49a7094b5b568a93f68c9cd544 (patch)
tree78fa57f042010bb097b223c92d0aa8b00688968f /fftools
parentc3aa4844f393f781df604878ef7896a99917f37b (diff)
avcodec/videotoolbox: add support for 10bit pixel format
this patch was originally posted on issue #7704 and was slightly adjusted to check for the availability of the pixel format.
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg_videotoolbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_videotoolbox.c b/fftools/ffmpeg_videotoolbox.c
index b820aec017..ad6174d3c7 100644
--- a/fftools/ffmpeg_videotoolbox.c
+++ b/fftools/ffmpeg_videotoolbox.c
@@ -53,6 +53,9 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame)
#ifdef kCFCoreFoundationVersionNumber10_7
case kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange: vt->tmp_frame->format = AV_PIX_FMT_NV12; break;
#endif
+#if HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE
+ case kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange: vt->tmp_frame->format = AV_PIX_FMT_P010; break;
+#endif
default:
av_log(NULL, AV_LOG_ERROR,
"%s: Unsupported pixel format: %s\n",