OpenWatch / FFmpegWrapper

A lightweight Objective-C wrapper for some FFmpeg libav functions
Other
179 stars 54 forks source link

ios11 AVMediaType conflict #23

Open MuFengYi opened 6 years ago

MuFengYi commented 6 years ago

ios11 system enum AVMediaType avutil.h enum AVMediaType { AVMEDIA_TYPE_UNKNOWN = -1, ///< Usually treated as AVMEDIA_TYPE_DATA AVMEDIA_TYPE_VIDEO, AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_DATA, ///< Opaque data information usually continuous AVMEDIA_TYPE_SUBTITLE, AVMEDIA_TYPE_ATTACHMENT, ///< Opaque data information usually sparse AVMEDIA_TYPE_NB }; conflict

mubinrevcord commented 6 years ago

I read this:- https://github.com/OpenWatch/FFmpegWrapper/issues/6

So better you change like I changed. Changed that enum AVMediaType to AVMediaTypeFFMPEG. then you build code so where ever you see the errors change replace this enum name with AVMediaTypeFFMPEG. it will take 5 minutes. and you can run project again in iOS 11 too.