Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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