Browse Source

adapting to newer library version

Nicolas Winkler 2 years ago
parent
commit
c385e839de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libalmond/src/VideoStream.cpp

+ 1 - 1
libalmond/src/VideoStream.cpp

@@ -27,7 +27,7 @@ VideoStream::VideoStream(int width, int height, const std::string& filename, int
         throw VideoExportException{ "could not find h264 encoder" };
         throw VideoExportException{ "could not find h264 encoder" };
     }
     }
 
 
-    AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
+    const AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
     if (!oformat)
     if (!oformat)
         oformat = av_guess_format("mp4", nullptr, nullptr);
         oformat = av_guess_format("mp4", nullptr, nullptr);
     if (oformat == nullptr)
     if (oformat == nullptr)