Reallocate internal buffer when coded frame size changes.