Do not use virtual in final class

Otherwise, with OPENCV_WARNINGS_ARE_ERRORS, it fails.
This commit is contained in:
Vincent Rabaud
2026-09-23 11:28:07 +02:00
parent c5bb11610f
commit e174fcd990
+2 -2
View File
@@ -221,14 +221,14 @@ public:
}
return true;
}
virtual bool open( const cv::String& filename, int fourcc, double fps, cv::Size frameSize, const VideoWriterParameters& params )
bool open( const cv::String& filename, int fourcc, double fps, cv::Size frameSize, const VideoWriterParameters& params )
{
close();
ffmpegWriter = cvCreateVideoWriterWithParams_FFMPEG( filename.c_str(), fourcc, fps, frameSize.width, frameSize.height, params );
return ffmpegWriter != 0;
}
virtual void close()
void close()
{
if (ffmpegWriter)
icvReleaseVideoWriter_FFMPEG_p( &ffmpegWriter );