Created
October 17, 2023 00:51
-
-
Save AndreiCherniaev/6b4bf4d221729139b7b750916a756346 to your computer and use it in GitHub Desktop.
How hardcoded arguments in main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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