Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AVDictionary *options = NULL;
- av_dict_set(&options, "allowed_media_types", "video", AV_OPT_SEARCH_CHILDREN);
- // Open video file
- if(avformat_open_input(&pFormatCtx, argv[1], NULL, &options)!=0)
- return -1; // Couldn't open file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement