ffmpeg: fix segfault with too many output files