ffmpeg: fix variable type for end char