WriteFFMPEG: And extra buffer was allocated for no reason.
Also clean-up a bit and use better functions instead of av_malloc
Merge branch 'master' of https://github.com/MrKepzie/openfx-io