diff options
author | Hanspeter Niederstrasser <niederstrasser@gmail.com> | 2014-07-13 21:49:24 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-16 00:40:32 +0200 |
commit | 04980dbee805f372f0505a0afd9ae10c0da1e17e (patch) | |
tree | 3144214d21f29b0b4e69592bd6ed0ef3f3eeb139 | |
parent | ad24256e7e9f0aa3f6f1dd563b020d3b37dcf6ae (diff) | |
download | ffmpeg-04980dbee805f372f0505a0afd9ae10c0da1e17e.tar.gz |
avdevice/avfoundation: kCVPixelFormatType_OneComponent8 only exists from 10.8 onward
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavdevice/avfoundation.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index df322c6c6d..74d781134e 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -70,7 +70,9 @@ static const struct AVFPixelFormatSpec avf_pixel_formats[] = { { AV_PIX_FMT_YUV420P, kCVPixelFormatType_420YpCbCr8Planar }, { AV_PIX_FMT_NV12, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange }, { AV_PIX_FMT_YUYV422, kCVPixelFormatType_422YpCbCr8_yuvs }, +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 { AV_PIX_FMT_GRAY8, kCVPixelFormatType_OneComponent8 }, +#endif { AV_PIX_FMT_NONE, 0 } }; |