Fix for Ffmpeg writer