ffmpeg: Fix cleanup with ost = NULL