OpenToonz - An open-source full-featured 2D animation creation software
C
fix for ffmpeg export range error (#828)
Jeremy Bullock3837a144362c
diff --git a/toonz/sources/image/ffmpeg/tiio_ffmpeg.cpp b/toonz/sources/image/ffmpeg/tiio_ffmpeg.cppindex ae04e1177..9dd86a1c4 100644--- a/toonz/sources/image/ffmpeg/tiio_ffmpeg.cpp+++ b/toonz/sources/image/ffmpeg/tiio_ffmpeg.cpp@@ -99,8 +99,9 @@ void Ffmpeg::setFrameRate(double fps) { m_frameRate = fps; }void Ffmpeg::setPath(TFilePath path) { m_path = path; }void Ffmpeg::createIntermediateImage(const TImageP &img, int frameIndex) {+ m_frameCount++;QString tempPath = m_path.getQString() + "tempOut" +- QString::number(frameIndex) + "." + m_intermediateFormat;+ QString::number(m_frameCount) + "." + m_intermediateFormat;std::string saveStatus = "";TRasterImageP tempImage(img);TRasterImage *image = (TRasterImage *)tempImage->cloneImage();@@ -128,7 +129,7 @@ void Ffmpeg::createIntermediateImage(const TImageP &img, int frameIndex) {qi->save(tempPath, format, -1);free(buffer);m_cleanUpList.push_back(tempPath);- m_frameCount++;+delete qi;delete image;}