[motion] patch for ffmpeg-3