Update for compatibility with the new codec API layout.