[motion] fix build with ffmpeg-3.5