Skip to content

Commit

Permalink
built on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Nov 28, 2024
1 parent a212795 commit a78e924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy3d/video/video_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<AVOutputFormat*>(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";
Expand Down

0 comments on commit a78e924

Please sign in to comment.