Hanspeter Niederstrasser gmail.com> writes:
> +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
This was my next suggestion, sorry for the first one.
> I'll submit a real patch if it seems correct.
Please send a patch made with git format-patch if it fixes
the problem for you.
> If 2.3 is going t
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
Carl Eugen Hoyos ag.or.at> writes:
> Put an "#ifdef kCVPixelFormatType_OneComponent8" around
> the usage as done in libavformat/v4l2-common.c (if it works).
I suspect it does not work, perhaps you can find the right
incantation?
(__MAC_OS_X_VERSION_MAX_ALLOWED > 1080 ?)
Carl Eugen
__
Hanspeter Niederstrasser gmail.com> writes:
> -enabled avfoundation_indev && { check_header_oc
> AVFoundation/AVFoundation.h || disable avfoundation_indev; }
> +enabled avfoundation_indev && { check_lib2
> AVFoundation/AVFoundation.h kCVPixelFormatType_OneComponent8
Put an "#ifdef kCVPixelFormat
This broke compiling on OS X < 10.8 (I am on 10.7)
clang -I. -I/src/ffmpeg/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DPIC -DHAVE_AV_CONFIG_H -I/sw/include -std=c99
-fomit-frame-pointer -fPIC -pthread -I/sw/include -I/sw/include
-I/sw/include/bs2b -I/sw/include -I/sw/include/fre