Advertisement
Guest User

Options

a guest
Sep 13th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. AVDictionary *options = NULL;
  2. av_dict_set(&options, "allowed_media_types", "video", AV_OPT_SEARCH_CHILDREN);
  3.  
  4. // Open video file
  5. if(avformat_open_input(&pFormatCtx, argv[1], NULL, &options)!=0)
  6. return -1; // Couldn't open file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement