From a78e9245cf8d564a0af3c7ec4b4c8e4bc65ecd89 Mon Sep 17 00:00:00 2001 From: Liangliang Nan Date: Thu, 28 Nov 2024 21:52:24 +0100 Subject: [PATCH] built on Windows --- easy3d/video/video_encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy3d/video/video_encoder.cpp b/easy3d/video/video_encoder.cpp index 43aeb719..565735b4 100644 --- a/easy3d/video/video_encoder.cpp +++ b/easy3d/video/video_encoder.cpp @@ -785,7 +785,7 @@ namespace internal { #endif // find the output format - avformat_alloc_output_context2(&m_ff->formatContext, outputFormat, nullptr, outputFormat ? m_filename.c_str() : nullptr); + avformat_alloc_output_context2(&m_ff->formatContext, const_cast(outputFormat), nullptr, outputFormat ? m_filename.c_str() : nullptr); if (!m_ff->formatContext) { if (!outputFormat) { LOG(WARNING) << "could not deduce output format from file extension: using mp4";