fix compile with latest FFmpeg