[motion/f24] patch for ffmpeg-3