Revert "[#1131] Codecs must not cache next buffer during processing"

This reverts commit b1775a3223e54e076f0abba85360a19ded368498.