Adapt to ffmpeg v1.1