compatible with ffmpeg 1.1