mirror of
https://github.com/opencv/opencv.git
synced 2026-09-12 13:23:03 -05:00
added explicit VideoWriter::release(). Fixed video stream finalization (write remaining frames); Fixed occasional crash in the case of odd-width or odd-height videos; Fixed a few problems in ffmpeg tests. Positioning still does not work well.
This commit is contained in:
@@ -493,9 +493,14 @@ VideoWriter::VideoWriter(const string& filename, int fourcc, double fps, Size fr
|
||||
open(filename, fourcc, fps, frameSize, isColor);
|
||||
}
|
||||
|
||||
VideoWriter::~VideoWriter()
|
||||
void VideoWriter::release()
|
||||
{
|
||||
writer.release();
|
||||
}
|
||||
|
||||
VideoWriter::~VideoWriter()
|
||||
{
|
||||
release();
|
||||
}
|
||||
|
||||
bool VideoWriter::open(const string& filename, int fourcc, double fps, Size frameSize, bool isColor)
|
||||
|
||||
Reference in New Issue
Block a user