updated to work with ffmpeg-1.0.6