Переглянути джерело

removing const to make compatible with newer ffmpeg

Nicolas Winkler 2 роки тому
батько
коміт
97cf12bda2
1 змінених файлів з 1 додано та 1 видалено
  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" };
     }
 
-    const AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
+    AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
     if (!oformat)
         oformat = av_guess_format("mp4", nullptr, nullptr);
     if (oformat == nullptr)