Fixing Scale Mode (None) in previews (#182)

* Handle SCALE_NONE mode when optimized for previews (previews are often smaller than the project size)

* Fixing 2 memory leaks (thanks PeterM)
This commit is contained in:
Jonathan Thomas
2019-01-09 00:56:49 -06:00
committed by GitHub
parent a8f75a5b67
commit e0ec603965
3 changed files with 39 additions and 25 deletions

View File

@@ -1973,6 +1973,7 @@ void FFmpegReader::RemoveAVFrame(AVFrame* remove_frame)
{
// Free memory
av_freep(&remove_frame->data[0]);
AV_FREE_FRAME(&remove_frame);
}
}