Fix building with new FFmpeg.