AVFormatWriter: free the context with the correct function

This commit is contained in:
JackBurton79
2018-08-14 13:49:48 +02:00
parent ee3e1cbe0b
commit a4e89ff894
@@ -377,7 +377,7 @@ AVFormatWriter::~AVFormatWriter()
av_freep(&fFormatContext->streams[i]);
}
av_free(fFormatContext);
avformat_free_context(fFormatContext);
av_free(fIOContext->buffer);
av_free(fIOContext);
}