Fix encoding on FFmpeg libavformat v56.