Jelajahi Sumber

adapting to newer library version

Nicolas Winkler 2 tahun lalu
induk
melakukan
c385e839de
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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" };
     }
 
-    AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
+    const AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
     if (!oformat)
         oformat = av_guess_format("mp4", nullptr, nullptr);
     if (oformat == nullptr)