Skip to content
Snippets Groups Projects
Commit e47f3ec4 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Work with older ffmpeg

parent 6761e4a0
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28542 passed
......@@ -111,7 +111,8 @@ int main(int argc, char **argv) {
AVFormatContext *oc;
AVStream *video_st[10][2] = {nullptr};
//av_register_all();
// TODO: Remove in newer versions
av_register_all();
fmt = av_guess_format(NULL, outputfile.c_str(), NULL);
......@@ -127,10 +128,11 @@ int main(int argc, char **argv) {
return -1;
}
oc->oformat = fmt;
//snprintf(oc->filename, sizeof(oc->filename), "%s", outputfile.c_str());
oc->url = (char*)av_malloc(outputfile.size()+1);
snprintf(oc->url, outputfile.size()+1, "%s", outputfile.c_str());
// TODO: Use URL in newer versions
snprintf(oc->filename, sizeof(oc->filename), "%s", outputfile.c_str());
//oc->url = (char*)av_malloc(outputfile.size()+1);
//snprintf(oc->url, outputfile.size()+1, "%s", outputfile.c_str());
/* open the output file, if needed */
if (!(fmt->flags & AVFMT_NOFILE)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment