This lets the build work on 10.7 (and seems to fail properly if I
change the version to >= 1070)
--- 8< --- 8< --- 8< --- 8< --- 8< ---
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index df322c6..74d7811 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 }
};
--- 8< --- 8< --- 8< --- 8< --- 8< ---
I'll submit a real patch if it seems correct. If 2.3 is going to have
the AVFoundation indev, should this block the release?
Hanspeter
--
Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it
lends itself to.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
may be included with your message.
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel