diff --git a/applications/ftl2mkv/src/main.cpp b/applications/ftl2mkv/src/main.cpp index 267039dd2bed339b796e8f389621c0a3177cb755..1d8dd4cef4e1ff03ca0126bc9a2812419f86498f 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)) {