Browse Source

fix const problem

Nicolas Winkler 2 years ago
parent
commit
47f2695d3b
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" };
     }
 
-    AVOutputFormat* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
+    auto* oformat = av_guess_format(nullptr, filename.c_str(), nullptr);
     if (!oformat)
         oformat = av_guess_format("mp4", nullptr, nullptr);
     if (oformat == nullptr)