updated patch from gentoo, added AV_CODEC_ID_VP9 ifdefs