Kaynağa Gözat

adapting to newer library version

Nicolas Winkler 2 yıl önce
ebeveyn
işleme
c385e839de
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)