ffmpeg: make max frames work again, after merge