for ffmpeg 2.1