Skip to content

Instantly share code, notes, and snippets.

@Ilgrim
Forked from amki/gist:3210277
Created August 4, 2019 10:26
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 Ilgrim/a1bd343fcd4b9b57c8dfe6e0b8f2c3f9 to your computer and use it in GitHub Desktop.
Save Ilgrim/a1bd343fcd4b9b57c8dfe6e0b8f2c3f9 to your computer and use it in GitHub Desktop.
AVFormatContext *formatC = avformat_alloc_context();
AVDictionary* options = NULL;
av_dict_set(&options,"list_devices","true",0);
AVInputFormat *iformat = av_find_input_format("dshow");
avformat_open_input(&formatC,"video=dummy",iformat,&options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment