From e47f3ec47943ecd3c0e2070cddbda9b8ff1f188e Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sat, 25 Jul 2020 22:05:00 +0300 Subject: [PATCH] Work with older ffmpeg --- applications/ftl2mkv/src/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/applications/ftl2mkv/src/main.cpp b/applications/ftl2mkv/src/main.cpp index 267039dd2..1d8dd4cef 100644 --- a/applications/ftl2mkv/src/main.cpp +++ b/applications/ftl2mkv/src/main.cpp @@ -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)) { -- GitLab