fixed several memory leaks and image sequences not matching when loading

This commit is contained in:
itsmattkc
2018-12-08 20:42:41 +11:00
parent f21742c2f3
commit 576d3f0098
12 changed files with 35 additions and 16 deletions
+3 -1
View File
@@ -35,7 +35,8 @@ Clip::Clip(Sequence* s) :
use_existing_frame(false),
filter_graph(NULL),
fbo(NULL),
texture(NULL)
texture(NULL),
opts(NULL)
{
pkt = av_packet_alloc();
reset();
@@ -88,6 +89,7 @@ void Clip::reset() {
codec = NULL;
codecCtx = NULL;
texture = NULL;
last_invalid_ts = -1;
}
void Clip::reset_audio() {