Ensure sprintf format specifier gets defined on Linux.
FfmpegVideo: add const_cast for earlier versions of ffmpeg.