Skip to content

Instantly share code, notes, and snippets.

@LeifAndersen
Last active August 22, 2017 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeifAndersen/a2886ad538b76264f9bf2fd3e4df91be to your computer and use it in GitHub Desktop.
Save LeifAndersen/a2886ad538b76264f9bf2fd3e4df91be to your computer and use it in GitHub Desktop.
int main() {
... declare vars ...
av_register_all();
avdevice_register_all();
fmt = av-find-input-format("avfoundation");
ctx = avformat-alloc-context());
ctx->iformat = fmt;
printf("%d\n", avdevice_list_devices(ctx, list));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment