Skip to content

Instantly share code, notes, and snippets.

@AndreiCherniaev
Created October 17, 2023 00:51
Show Gist options
  • Save AndreiCherniaev/6b4bf4d221729139b7b750916a756346 to your computer and use it in GitHub Desktop.
Save AndreiCherniaev/6b4bf4d221729139b7b750916a756346 to your computer and use it in GitHub Desktop.
How hardcoded arguments in main
std::vector<char*> varguments;
{
varguments.push_back(argv[0]);
// Source
varguments.push_back("./big_buck_bunny_short.mp4 ");
// Destination
varguments.push_back("./big_buck_bunny_short-processed.mp4");
}
char** arguments = new char*[varguments.size()];
for (unsigned int i = 0; i < varguments.size(); i++)
{
arguments[i] = varguments[i];
}
argc = varguments.size();
argv = arguments;
https://stackoverflow.com/questions/44763004/scale-filter-crashes-with-error-when-used-from-transcoding-example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment