Add compatibility for ffmpeg-2 (spotted by Lars Wendler/Gentoo)