Fix FF_API defines for ffmpeg 2.4, it should work now.