Skip to content

Commit

Permalink
config: test videotoolbox header only
Browse files Browse the repository at this point in the history
static ffmpeg depends on too many libs and hard to test. assume vt is always available on apple if ffmpeg header exists
  • Loading branch information
wang-bin committed May 8, 2018
1 parent f9da1c3 commit 552e0ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config.tests/videotoolbox/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
Copyright (C) 2012-2018 Wang Bin <[email protected]>
* This file is part of QtAV
Expand All @@ -18,11 18,14 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
#ifndef __APPLE__
#error apple only
#endif
extern "C" {
#include <libavcodec/videotoolbox.h>
}
int main()
{
av_videotoolbox_alloc_context();
//av_videotoolbox_alloc_context();
return 0;
}

0 comments on commit 552e0ad

Please sign in to comment.