config: test videotoolbox header only

static ffmpeg depends on too many libs and hard to test. assume vt is always available on apple if ffmpeg header exists
This commit is contained in:
wang-bin
2018-05-08 18:28:10 +08:00
parent f9da1c3d6d
commit 552e0ad88a
+5 -2
View File
@@ -1,6 +1,6 @@
/****************************************************************************** /******************************************************************************
QtAV: Media play library based on Qt and FFmpeg QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com> Copyright (C) 2012-2018 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV * This file is part of QtAV
@@ -18,11 +18,14 @@
License along with this library; if not, write to the Free Software License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/ ******************************************************************************/
#ifndef __APPLE__
#error apple only
#endif
extern "C" { extern "C" {
#include <libavcodec/videotoolbox.h> #include <libavcodec/videotoolbox.h>
} }
int main() int main()
{ {
av_videotoolbox_alloc_context(); //av_videotoolbox_alloc_context();
return 0; return 0;
} }