ffmpeg: simplify subtitles code